diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-08 15:57:13 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-08 15:57:13 +0000 |
commit | 7ca3d3dfc54c32b2e431345b919f9eaafdf327ff (patch) | |
tree | c6d6ebbba62bc44f746f80344153cb75bd339e87 /lib/puppet/parser/parser.rb | |
parent | 195f2e93b603ff873c4de36016b3543df62549e0 (diff) | |
download | puppet-7ca3d3dfc54c32b2e431345b919f9eaafdf327ff.tar.gz puppet-7ca3d3dfc54c32b2e431345b919f9eaafdf327ff.tar.xz puppet-7ca3d3dfc54c32b2e431345b919f9eaafdf327ff.zip |
Fixing bug that occurs with only one argument
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@878 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 43fa51119..7ec7ae29b 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..id3b98377f5e', 'grammar.ra', 703 +module_eval <<'..end grammar.ra modeval..id6f2ed69196', 'grammar.ra', 703 attr_reader :file attr_accessor :files @@ -144,7 +144,7 @@ def string=(string) end # $Id$ -..end grammar.ra modeval..id3b98377f5e +..end grammar.ra modeval..id6f2ed69196 ##### racc 1.4.4 generates ### @@ -1327,13 +1327,13 @@ module_eval <<'.,.,', 'grammar.ra', 607 module_eval <<'.,.,', 'grammar.ra', 618 def _reduce_82( val, _values, result ) - if val[1].is_a?(AST::ASTArray) + if val[1].instance_of?(AST::ASTArray) result = val[1] else result = AST::ASTArray.new( :line => @lexer.line, :file => @lexer.file, - :children => [val[0]] + :children => [val[1]] ) end result |