diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-19 19:16:10 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-19 19:16:10 +0000 |
commit | 9b5833a63cc88fff7ce8e157e6ab079d3fd3f631 (patch) | |
tree | f367096862d5f24cd55bcb0b88e4a2efd41682dc /lib/puppet/parser/parser.rb | |
parent | 1f8b768e4ebef4e9ee54ee96db2544d6f9522bbf (diff) | |
download | puppet-9b5833a63cc88fff7ce8e157e6ab079d3fd3f631.tar.gz puppet-9b5833a63cc88fff7ce8e157e6ab079d3fd3f631.tar.xz puppet-9b5833a63cc88fff7ce8e157e6ab079d3fd3f631.zip |
Clarifying the errors a bit when nodes come from external sources.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2324 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/parser.rb')
-rw-r--r-- | lib/puppet/parser/parser.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/parser/parser.rb b/lib/puppet/parser/parser.rb index a4c2da63e..8b75200b5 100644 --- a/lib/puppet/parser/parser.rb +++ b/lib/puppet/parser/parser.rb @@ -29,7 +29,7 @@ module Puppet class Parser < Racc::Parser -module_eval <<'..end grammar.ra modeval..id729500608d', 'grammar.ra', 603 +module_eval <<'..end grammar.ra modeval..idde6e0009a9', 'grammar.ra', 603 require 'puppet/parser/functions' attr_reader :file, :interp @@ -65,11 +65,11 @@ end # available. def ast(klass, hash = nil) hash ||= {} - unless hash[:line] + unless hash.include?(:line) hash[:line] = @lexer.line end - unless hash[:file] + unless hash.include?(:file) if file = @lexer.file hash[:file] = file end @@ -254,7 +254,7 @@ end # $Id$ -..end grammar.ra modeval..id729500608d +..end grammar.ra modeval..idde6e0009a9 ##### racc 1.4.5 generates ### |