summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/compiler.rb
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-09 15:13:38 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-09 15:14:13 -0800
commit1d708a67c7db3a631a5577f8b26232c248862eca (patch)
tree2d1ccfb85b2d7543d2c2733d0db31b58dd72d653 /lib/puppet/parser/compiler.rb
parent22d81f0b319b260aa4cf4f6bbc5948fb6b1d4db9 (diff)
parent80adb39d1f4e87fe2fa12bd03df335fc285c0bb6 (diff)
downloadpuppet-1d708a67c7db3a631a5577f8b26232c248862eca.tar.gz
puppet-1d708a67c7db3a631a5577f8b26232c248862eca.tar.xz
puppet-1d708a67c7db3a631a5577f8b26232c248862eca.zip
Merge commit '2.6.3rc2' into next
Diffstat (limited to 'lib/puppet/parser/compiler.rb')
-rw-r--r--lib/puppet/parser/compiler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/compiler.rb b/lib/puppet/parser/compiler.rb
index e1227e753..c60e1d4fb 100644
--- a/lib/puppet/parser/compiler.rb
+++ b/lib/puppet/parser/compiler.rb
@@ -144,7 +144,7 @@ class Puppet::Parser::Compiler
if klass = scope.find_hostclass(name)
found << name and next if scope.class_scope(klass)
- resource = klass.mk_plain_resource(scope)
+ resource = klass.ensure_in_catalog(scope)
# If they've disabled lazy evaluation (which the :include function does),
# then evaluate our resource immediately.
@@ -220,7 +220,7 @@ class Puppet::Parser::Compiler
# Create a resource to model this node, and then add it to the list
# of resources.
- resource = astnode.mk_plain_resource(topscope)
+ resource = astnode.ensure_in_catalog(topscope)
resource.evaluate