summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-29 18:15:53 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-29 18:15:53 +0000
commitda3e9d45436b4855d3fec156bd8465a17e03f92d (patch)
treedd65be8dee55e976d2a453ce0ca6b8ea7d9a2543 /lib/puppet/parser/ast
parent280f0b46618d201e6e2f89f938c8d6b66dc12eea (diff)
downloadpuppet-da3e9d45436b4855d3fec156bd8465a17e03f92d.tar.gz
puppet-da3e9d45436b4855d3fec156bd8465a17e03f92d.tar.xz
puppet-da3e9d45436b4855d3fec156bd8465a17e03f92d.zip
Hopefully fixing tagging problem
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1995 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/ast')
-rw-r--r--lib/puppet/parser/ast/component.rb4
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