Issue #22557 has been updated by Josh Cooper.

I can reproduce on ruby 1.8.7:

<pre>
root@puppetmaster:~# puppet apply -e "package { 'nrpe': name => 
['nagios-plugins', 'nagios-nrpe-server'], ensure=> present }"
Notice: Compiled catalog for puppetmaster.solar.lan in environment production 
in 0.14 seconds
Warning: Failed to match dpkg-query line "No packages found matching 
nagios-plugins.\n"
Notice: /Stage[main]//Package[nrpe]/ensure: ensure changed 'purged' to 'present'
Notice: Finished catalog run in 48.18 seconds

root@puppetmaster:~# puppet apply -e "package { 'nrpe': name => 
['nagios-plugins', 'nagios-nrpe-server'], ensure=> present }"
Notice: Compiled catalog for puppetmaster.solar.lan in environment production 
in 0.11 seconds
Notice: /Stage[main]//Package[nrpe]/ensure: ensure changed 'purged' to 'present'
Notice: Finished catalog run in 0.40 seconds

root@puppetmaster:~# puppet apply -e "package { ['nagios-plugins', 
'nagios-nrpe-server']: ensure=> present }"
Notice: Compiled catalog for puppetmaster.solar.lan in environment production 
in 0.10 seconds
Notice: Finished catalog run in 0.09 seconds

root@puppetmaster:~# dpkg -l | grep nagios
ii  nagios-nrpe-server                   2.12-4                            
Nagios Remote Plugin Executor Server
ii  nagios-plugins                       1.4.15-3squeeze1                  
Plugins for the nagios network monitoring and management system
ii  nagios-plugins-basic                 1.4.15-3squeeze1                  
Plugins for the nagios network monitoring and management system
ii  nagios-plugins-standard              1.4.15-3squeeze1                  
Plugins for the nagios network monitoring and management system

root@puppetmaster:~# puppet --version
3.3.0

root@puppetmaster:~# ruby --version
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
</pre>


----------------------------------------
Bug #22557: Regression on arrays and puppet resources using the name attribute
https://projects.puppetlabs.com/issues/22557#change-97756

* Author: William Van Hevelingen
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 3.3.0
* Keywords: 
* Branch: 
----------------------------------------
Upgraded to Puppet 3.3.0 and started getting these errors.

Reporting broken for arrays on puppet resources using the name attribute.

<pre>
# puppet apply -e "package { 'nrpe': name => ['nagios-plugins', 
'nagios-nrpe-server'], ensure=>present } "
Notice: Compiled catalog for foo.lan in environment production in 1.72 seconds
Notice: /Stage[main]//Package[nrpe]/ensure: ensure changed 'purged' to 'present'
</pre>


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to