[prev in list] [next in list] [prev in thread] [next in thread]
List: puppet-commit
Subject: [Puppet-commit] puppet revision 1995
From: svn () madstop ! com
Date: 2006-12-29 18:15:53
Message-ID: 20061229181553.2E35B16F15D () culain ! madstop ! com
[Download RAW message or body]
luke 2006-12-29 12:15:53 -0600 (Fri, 29 Dec 2006)
Hopefully fixing tagging problem
Modified: trunk/lib/puppet/parser/ast/component.rb
===================================================================
--- trunk/lib/puppet/parser/ast/component.rb 2006-12-29 18:08:15 UTC (rev 1994)
+++ trunk/lib/puppet/parser/ast/component.rb 2006-12-29 18:15:53 UTC (rev 1995)
@@ -42,11 +42,11 @@
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
[Attachment #3 (text/html)]
<p><b>luke</b> 2006-12-29 12:15:53 -0600 (Fri, 29 Dec 2006)</p><p>Hopefully fixing tagging problem<br>
</p><hr noshade><pre><font color="gray">Modified: trunk/lib/puppet/parser/ast/component.rb
===================================================================
--- trunk/lib/puppet/parser/ast/component.rb 2006-12-29 18:08:15 UTC (rev 1994)
+++ trunk/lib/puppet/parser/ast/component.rb 2006-12-29 18:15:53 UTC (rev 1995)
@@ -42,11 +42,11 @@
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
</font>
</pre>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic