diff options
Diffstat (limited to 'lib/puppet/parser/ast/classdef.rb')
-rw-r--r-- | lib/puppet/parser/ast/classdef.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/puppet/parser/ast/classdef.rb b/lib/puppet/parser/ast/classdef.rb index 7386b25eb..147ab88e5 100644 --- a/lib/puppet/parser/ast/classdef.rb +++ b/lib/puppet/parser/ast/classdef.rb @@ -36,9 +36,9 @@ class Puppet::Parser::AST # [name,args]) begin - scope.settype(name, - HostClass.new(arghash) - ) + hclass = HostClass.new(arghash) + hclass.keyword = self.keyword + scope.settype(name, hclass) rescue Puppet::ParseError => except except.line = self.line except.file = self.file @@ -54,6 +54,7 @@ class Puppet::Parser::AST def initialize(hash) @parentclass = nil + @keyword = "class" super end |