package issue for provider sun

31 views
Skip to first unread message

david boldt

unread,
Feb 3, 2012, 4:25:50 PM2/3/12
to Puppet Users
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

Felix Frank

unread,
Feb 20, 2012, 3:31:54 AM2/20/12
to puppet...@googlegroups.com
Hi,

On 02/03/2012 10:25 PM, david boldt wrote:
>
> The following one line change appears to fix that problem for 2.7.10.
>

> ...

great, thanks for sharing. Unfortunately, this will probably need to
made a bug report at http://projects.puppetlabs.com/issues/.

You will likely be required to get a Redmine account and click to accept
a license agreement at some point down the road. Sorry for the hassle
(been there myself), but everyone would be most grateful if you went
through with it.

Thanks!

> PS This is my first posting on Puppet, so please pardon any customs
> infractions

Uhm...sure? :-)

Seriously, though - can't seem to find any.

Cheers,
Felix

Reply all
Reply to author
Forward
0 new messages