diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-10 21:37:29 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-10 21:37:29 +0000 |
commit | 0507486ad35189c557903d0c78bd1bbd7d43b967 (patch) | |
tree | 3555b793c684ec009dd906b9d8c28212ba242fd7 /lib/puppet | |
parent | ae4b12e2cd337007f32c6bdb51924969a1bddc48 (diff) | |
download | puppet-0507486ad35189c557903d0c78bd1bbd7d43b967.tar.gz puppet-0507486ad35189c557903d0c78bd1bbd7d43b967.tar.xz puppet-0507486ad35189c557903d0c78bd1bbd7d43b967.zip |
Fixing #117. If only one value was provided, then it was not placed in an array, yet AST::Selector expected an array. The grammar needs to have some abstraction added or something, because I seem to have encountered this bug for every ast type that supports arrays internally.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1097 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/parser/ast/selector.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/parser/ast/selector.rb b/lib/puppet/parser/ast/selector.rb index 299473fda..3adf0261c 100644 --- a/lib/puppet/parser/ast/selector.rb +++ b/lib/puppet/parser/ast/selector.rb @@ -19,6 +19,8 @@ class Puppet::Parser::AST default = nil + @values = [@values] unless @values.instance_of? AST::ASTArray + # Then look for a match in the options. @values.each { |obj| param = obj.param.safeevaluate(:scope => scope) |