Issue #7986 has been updated by Stefan Schulte.

I guess the problem lies in the package name because puppet doesnt expect a 
package name to include whitespace. As a result the line is in fact parsed as
<pre>
packagename = 'service/network/ssh'
version = '(solaris)'
status = '0.5.11-0.151.0.1'
</pre>

because status is not installed, puppet thinks the package is absent.

So is '(solaris)' part of the package name? Should puppet just ignore stuff 
that is put in brackets?
----------------------------------------
Bug #7986: Solaris 11/OpenSolaris pkg provider needs to accept exit code 4
https://projects.puppetlabs.com/issues/7986

Author: Paul Armstrong
Status: Accepted
Priority: Normal
Assignee: 
Category: package
Target version: 
Affected Puppet version: 2.6.8
Keywords: solaris opensolaris pkg
Branch: 


When a package doesn't require updates, pkg returns with an exit code of 4 
instead of 0.

<pre>
$ pkg install bash
No updates necessary for this image.
$ echo $?
4
</pre>

The pkg provider needs to check for exit code 4 and treat that as success for 
checks.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to