summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-31 16:10:45 -0500
committerLuke Kanies <luke@madstop.com>2008-10-31 16:10:45 -0500
commite70c1a067a801443719bfabb26aa0a2690b02838 (patch)
tree89bc8dedf994f9a6325270dd093374790343dd69 /lib/puppet
parent4596d2d80e76594589a42e3a89ba88b5dbe6f1c9 (diff)
downloadpuppet-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-xlib/puppet/type/user.rb7
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