diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-05-30 20:15:08 +0200 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-06-06 09:52:53 +1000 |
commit | d69fffb63ca9efe3cca67167430b23d3b8d38fa4 (patch) | |
tree | ea6c622f8610db44fd874f877a9a5aee6fe89a73 /lib | |
parent | 6ce0d1e633780a71ec3597a90120d67d77a5d89f (diff) | |
download | puppet-d69fffb63ca9efe3cca67167430b23d3b8d38fa4.tar.gz puppet-d69fffb63ca9efe3cca67167430b23d3b8d38fa4.tar.xz puppet-d69fffb63ca9efe3cca67167430b23d3b8d38fa4.zip |
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 <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/ast/collexpr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |