summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/selector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/ast/selector.rb')
-rw-r--r--lib/puppet/parser/ast/selector.rb2
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)