diff options
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/ast/component.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/ast/component.rb b/lib/puppet/parser/ast/component.rb index a21a03517..1b14d508b 100644 --- a/lib/puppet/parser/ast/component.rb +++ b/lib/puppet/parser/ast/component.rb @@ -42,11 +42,11 @@ class Puppet::Parser::AST scope = scope # Additionally, add a tag for whatever kind of class # we are - if @type != "" + if @type != "" and ! @type.nil? scope.tag(@type) end - unless name.nil? or name =~ /[^\w]/ + unless name.nil? or name =~ /[^\w]/ or name == "" scope.tag(name) end |
