summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/scope.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb
index 1f672d15b..12a3c3430 100644
--- a/lib/puppet/parser/scope.rb
+++ b/lib/puppet/parser/scope.rb
@@ -519,14 +519,14 @@ class Puppet::Parser::Scope
# of the objects contained in this scope.
def tag(*ary)
ary.each { |tag|
- unless tag =~ /^\w[-\w]+$/
- fail Puppet::ParseError, "Invalid tag %s" % tag.inspect
- end
if tag.nil? or tag == ""
puts caller
Puppet.debug "got told to tag with %s" % tag.inspect
next
end
+ unless tag =~ /^\w[-\w]+$/
+ fail Puppet::ParseError, "Invalid tag %s" % tag.inspect
+ end
tag = tag.to_s
unless @tags.include?(tag)
#Puppet.info "Tagging scope %s with %s" % [self.object_id, tag]