summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-09 15:11:36 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-09 15:11:36 -0800
commit80adb39d1f4e87fe2fa12bd03df335fc285c0bb6 (patch)
tree4be8f5688fc6d6dedf433ad375745a54640d0a3b /lib/puppet/parser/ast
parent2279fe12b32bd626066d9b7637367fcbb293c29b (diff)
parent244213c856f3753dd3e06c5f01003f6a0d3f77ef (diff)
downloadpuppet-80adb39d1f4e87fe2fa12bd03df335fc285c0bb6.tar.gz
puppet-80adb39d1f4e87fe2fa12bd03df335fc285c0bb6.tar.xz
puppet-80adb39d1f4e87fe2fa12bd03df335fc285c0bb6.zip
Merge commit '2.6.3rc2' into next
Manually resolved conflicts: lib/puppet/parser/ast/resource.rb spec/unit/parser/ast/resource_spec.rb
Diffstat (limited to 'lib/puppet/parser/ast')
-rw-r--r--lib/puppet/parser/ast/resource.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/puppet/parser/ast/resource.rb b/lib/puppet/parser/ast/resource.rb
index bd15d9935..ce3c499c5 100644
--- a/lib/puppet/parser/ast/resource.rb
+++ b/lib/puppet/parser/ast/resource.rb
@@ -53,10 +53,11 @@ class Resource < AST::Branch
:strict => true
)
- # And then store the resource in the compiler.
- # At some point, we need to switch all of this to return
- # resources instead of storing them like this.
+ if resource.resource_type.is_a? Puppet::Resource::Type
+ resource.resource_type.instantiate_resource(scope, resource)
+ end
scope.compiler.add_resource(scope, resource)
+ scope.compiler.evaluate_classes([resource_title],scope,false) if fully_qualified_type == 'class'
resource
end
}