diff options
author | Simon Beirnaert <simon.beirnaert@bayer.com> | 2016-11-08 08:37:12 +0100 |
---|---|---|
committer | Simon Beirnaert <simon.beirnaert@bayer.com> | 2016-11-08 08:37:12 +0100 |
commit | b979e34b05652cbfb4e9ca7adc29ba9a01081437 (patch) | |
tree | 915a9f2c1fb9d1e16c418cbcbcf6e8a578594789 /lib/puppet | |
parent | 4b15c970f5ac6bc683cfde32d782f51a63bee867 (diff) |
(MODULES-3829) Use .dup to duplicate classes for modification.
This function otherwise fails during `puppet preview` on Puppet 3.8.X systems.
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/parser/functions/ensure_resources.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/ensure_resources.rb b/lib/puppet/parser/functions/ensure_resources.rb index 30d57a8..b3c51e6 100644 --- a/lib/puppet/parser/functions/ensure_resources.rb +++ b/lib/puppet/parser/functions/ensure_resources.rb @@ -36,7 +36,7 @@ ENDOFDOC params ||= {} if title.is_a?(Hash) - resource_hash = Hash(title) + resource_hash = title.dup resources = resource_hash.keys Puppet::Parser::Functions.function(:ensure_resource) |