diff options
author | Luke Kanies <luke@madstop.com> | 2008-10-31 16:10:45 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-10-31 16:10:45 -0500 |
commit | e70c1a067a801443719bfabb26aa0a2690b02838 (patch) | |
tree | 89bc8dedf994f9a6325270dd093374790343dd69 /lib/puppet | |
parent | 4596d2d80e76594589a42e3a89ba88b5dbe6f1c9 (diff) | |
download | puppet-e70c1a067a801443719bfabb26aa0a2690b02838.tar.gz puppet-e70c1a067a801443719bfabb26aa0a2690b02838.tar.xz puppet-e70c1a067a801443719bfabb26aa0a2690b02838.zip |
Fixing forward-compatibility issues resulting from no global resources
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rwxr-xr-x | lib/puppet/type/user.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb index 929e45d14..740141742 100755 --- a/lib/puppet/type/user.rb +++ b/lib/puppet/type/user.rb @@ -210,11 +210,8 @@ module Puppet groups.each { |group| case group when Integer: - if obj = Puppet.type(:group).find { |gobj| - gobj.should(:gid) == group - } - autos << obj - + if resource = catalog.resources.find { |r| r.is_a?(Puppet.type(:group)) and r.should(:gid) == group } + autos << resource end else autos << group |