Under Solaris: when a package that I wish to insure the presence of
does not exist, apply fails with the following message:
err: /Stage[main]/Lsof::Lsof::Solaris/Package[SMClsof]: Could not
evaluate: Unable to get information about package SMClsof because of:
["ERROR: information for \"SMClsof\" was not found\n"]
The following one line change appears to fix that problem for 2.7.10.
--- /usr/opt/lib/ruby/gems/1.9.1/gems/puppet-2.7.10/lib/puppet/
provider/package/sun.rb~ Wed Feb 1 19:16:12 2012
+++ /usr/opt/lib/ruby/gems/1.9.1/gems/puppet-2.7.10/lib/puppet/
provider/package/sun.rb Fri Feb 3 15:31:12 2012
@@ -106,7 +106,7 @@
}
return hash
rescue Puppet::ExecutionFailure => detail
- return {:ensure => :absent} if detail.message =~ /information
for "#{Regexp.escape(@resource[:name])}" was not found/
+ return {:ensure => :absent} if detail.message =~ /information
for .* was not found/
puts detail.backtrace if Puppet[:trace]
raise Puppet::Error, "Unable to get information about package
#{@resource[:name]} because of: #{detail}"
end
--david boldt
PS This is my first posting on Puppet, so please pardon any customs
infractions
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.