From 0507486ad35189c557903d0c78bd1bbd7d43b967 Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 10 Apr 2006 21:37:29 +0000 Subject: 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 --- lib/puppet/parser/ast/selector.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/puppet') 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) -- cgit