Skip to content

Commit 4368de9

Browse files
authored
Merge pull request #687 from MG2R/MODULES3829
(MODULES-3829) Use .dup to duplicate classes for modification.
2 parents 4b15c97 + b979e34 commit 4368de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/parser/functions/ensure_resources.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
params ||= {}
3737

3838
if title.is_a?(Hash)
39-
resource_hash = Hash(title)
39+
resource_hash = title.dup
4040
resources = resource_hash.keys
4141

4242
Puppet::Parser::Functions.function(:ensure_resource)

0 commit comments

Comments
 (0)