diff options
author | David Schmitt <david.schmitt@puppet.com> | 2016-11-08 08:56:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 08:56:57 +0000 |
commit | 4368de9190d582fb3f625611ac1b79789f756deb (patch) | |
tree | 915a9f2c1fb9d1e16c418cbcbcf6e8a578594789 /lib/puppet | |
parent | 4b15c970f5ac6bc683cfde32d782f51a63bee867 (diff) | |
parent | b979e34b05652cbfb4e9ca7adc29ba9a01081437 (diff) |
Merge pull request #687 from MG2R/MODULES3829
(MODULES-3829) Use .dup to duplicate classes for modification.
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) |