summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-13 10:34:50 -0600
committerLuke Kanies <luke@madstop.com>2007-11-13 10:34:50 -0600
commitb65fb8316e10fb31c4ac9d0af75bb3e7f452d312 (patch)
treea446e28f15917737be4fdaec3d7ebff71e188c9c /lib/puppet/parser
parentfa1924eb04a2d6600349eddf13e1f3e62b45d6ce (diff)
downloadpuppet-b65fb8316e10fb31c4ac9d0af75bb3e7f452d312.tar.gz
puppet-b65fb8316e10fb31c4ac9d0af75bb3e7f452d312.tar.xz
puppet-b65fb8316e10fb31c4ac9d0af75bb3e7f452d312.zip
Fixing a parser test -- really, just removing tests
that belong with the AST classes rather than in the parser. Yeah, these tests need to be rewritten. Committed on an airplane. :)
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/ast/astarray.rb1
-rw-r--r--lib/puppet/parser/ast/hostclass.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/parser/ast/astarray.rb b/lib/puppet/parser/ast/astarray.rb
index 9a2dc286c..5f1e838d0 100644
--- a/lib/puppet/parser/ast/astarray.rb
+++ b/lib/puppet/parser/ast/astarray.rb
@@ -49,6 +49,7 @@ class Puppet::Parser::AST
end
end
}
+
rets = [settors, others].flatten.collect { |child|
child.safeevaluate(:scope => scope)
}
diff --git a/lib/puppet/parser/ast/hostclass.rb b/lib/puppet/parser/ast/hostclass.rb
index 9c039bb49..d4904bebf 100644
--- a/lib/puppet/parser/ast/hostclass.rb
+++ b/lib/puppet/parser/ast/hostclass.rb
@@ -26,7 +26,7 @@ class Puppet::Parser::AST
# Verify that we haven't already been evaluated. This is
# what provides the singleton aspect.
if existing_scope = scope.compile.class_scope(self)
- Puppet.debug "%s class already evaluated" % @type
+ Puppet.debug "Class '%s' already evaluated; not evaluating again" % (classname == "" ? "main" : classname)
return nil
end