From d69fffb63ca9efe3cca67167430b23d3b8d38fa4 Mon Sep 17 00:00:00 2001 From: Brice Figureau Date: Sat, 30 May 2009 20:15:08 +0200 Subject: Fix #2246 - Array tagged resources can't be collected or exported I don't know why we imposed the restriction that we shouldn't match with parameter containing arrays in exported mode. That doesn't seem right, as the produced rails query works fine with arrays. Note: the user tags are not stored in the rails database except under the special resource parameter tag. This also doesn't seem right. Signed-off-by: Brice Figureau --- lib/puppet/parser/ast/collexpr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/parser/ast/collexpr.rb b/lib/puppet/parser/ast/collexpr.rb index 85bca583f..54b003a91 100644 --- a/lib/puppet/parser/ast/collexpr.rb +++ b/lib/puppet/parser/ast/collexpr.rb @@ -31,7 +31,7 @@ class CollExpr < AST::Branch when "and"; code1.call(resource) and code2.call(resource) when "or"; code1.call(resource) or code2.call(resource) when "==" - if resource[str1].is_a?(Array) && form != :exported + if resource[str1].is_a?(Array) resource[str1].include?(str2) else resource[str1] == str2 -- cgit