From da3e9d45436b4855d3fec156bd8465a17e03f92d Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 29 Dec 2006 18:15:53 +0000 Subject: Hopefully fixing tagging problem git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1995 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/ast/component.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/parser') 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 -- cgit