diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/functions/ensure_resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/ensure_resource.rb b/lib/puppet/parser/functions/ensure_resource.rb index 36c423a..a9a1733 100644 --- a/lib/puppet/parser/functions/ensure_resource.rb +++ b/lib/puppet/parser/functions/ensure_resource.rb @@ -31,7 +31,7 @@ ENDOFDOC raise(ArgumentError, 'Must specify a title') unless title params ||= {} - items = title.kind_of?(Array) ? title : [title] + items = [title].flatten items.each do |item| Puppet::Parser::Functions.function(:defined_with_params) |