summaryrefslogtreecommitdiffstats
path: root/lib/puppet/node/catalog.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-01-08 09:23:34 -0600
committerLuke Kanies <luke@madstop.com>2008-01-08 09:23:34 -0600
commit3cc3e0f5b21deee4fbdbcbae18fba47c7a0cbb1e (patch)
tree2d47761110c458f175f6483f0424a959cbcb3f34 /lib/puppet/node/catalog.rb
parentfe9b453650755e66e29eca259075e2e7245a5219 (diff)
downloadpuppet-3cc3e0f5b21deee4fbdbcbae18fba47c7a0cbb1e.tar.gz
puppet-3cc3e0f5b21deee4fbdbcbae18fba47c7a0cbb1e.tar.xz
puppet-3cc3e0f5b21deee4fbdbcbae18fba47c7a0cbb1e.zip
Lots o' bug-fixes toward getting rid of global resources.
We still have about 60 failing tests, but some of them are the failing directory service tests (probably 20 or so), and most are simple fixes to the tests themselves.
Diffstat (limited to 'lib/puppet/node/catalog.rb')
-rw-r--r--lib/puppet/node/catalog.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/node/catalog.rb b/lib/puppet/node/catalog.rb
index 9601309d8..0dcfbaefc 100644
--- a/lib/puppet/node/catalog.rb
+++ b/lib/puppet/node/catalog.rb
@@ -293,7 +293,7 @@ class Puppet::Node::Catalog < Puppet::PGraph
# And filebuckets
if bucket = Puppet::Type.type(:filebucket).mkdefaultbucket
- add_resource(bucket)
+ add_resource(bucket) unless resource(bucket.ref)
end
end