]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
PUP-1724 Don't modify the paramaters to deep_merge
authorJustin Burnham <jburnham@mediatemple.net>
Mon, 17 Feb 2014 19:46:55 +0000 (11:46 -0800)
committerJustin Burnham <jburnham@mediatemple.net>
Mon, 17 Feb 2014 20:19:40 +0000 (12:19 -0800)
commitc12e9afc97f4356bc20554d32861889680c5fdc1
tree26af1eb65b781e8685172483b5b78cb461e1c826
parentab981422a67636441f1bfebaaade36aa690f1f25
PUP-1724 Don't modify the paramaters to deep_merge

Instead of modifying the first paramater of deep_merge due to the
use of the merge! function, instead use merge to return a copy of
the merged object. This allows one to continue to use the original
first parameter after the call to deep_merge.
lib/puppet/parser/functions/deep_merge.rb
spec/unit/puppet/parser/functions/deep_merge_spec.rb