diff options
Diffstat (limited to 'lib/puppet/parser/ast')
-rw-r--r-- | lib/puppet/parser/ast/objectdef.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet/parser/ast/objectdef.rb b/lib/puppet/parser/ast/objectdef.rb index 9acf56b49..f15a082e2 100644 --- a/lib/puppet/parser/ast/objectdef.rb +++ b/lib/puppet/parser/ast/objectdef.rb @@ -2,7 +2,7 @@ class Puppet::Parser::AST # Any normal puppet object declaration. Can result in a class or a # component, in addition to builtin types. class ObjectDef < AST::Branch - attr_accessor :name, :type + attr_accessor :name, :type, :collectable attr_reader :params # probably not used at all @@ -93,6 +93,11 @@ class Puppet::Parser::AST :file => @file, :line => @line ) + + # Retain our collectable marking + if self.collectable + obj.collectable = true + end rescue Puppet::ParseError => except except.line = self.line except.file = self.file |