Skip to content

Conversation

jburnham
Copy link

@jburnham jburnham commented Oct 4, 2013

per puppetlabs/puppetlabs-mysql#274 and for issue #20200 I am adding a recursive merge function to stdlib. Since replacing the normal merge with this new functionality can cause unexpected consequences, this is being added as a new function (deep_merge).

This is replacing the original pull request #186 and moving it to my github organization that has signed the CLA. The other issues have also been resolved.

Issue #20200 notes that the merge function does not
support nested hashes.

To prevent unintended side effects with changing merge,
add a deep_merge function instead.
@jpartlow
Copy link
Contributor

After chatting with Adrien, I made a few changes to pull in the overlay function as a Proc and simplify the merging decisions based on Hash.merge's block variant which will execute the passed block when keys conflict. This has been merged to master and should be part of the next 4.x release.

wmfgerrit pushed a commit to wikimedia/operations-puppet that referenced this pull request Mar 23, 2016
Import the #189 PR of puppetlabs-stdlib to add the deep_merge function
puppetlabs/puppetlabs-stdlib#189. It is a
variant of the merge function that we already have in our repo.
It is done as a solo commit, instead of fully upgrading our stdlib
version to the one by puppetlabs in order to avoid any unforeseen
consequences to other users of stdlib in our repo.

Change-Id: Iddd0b869b1c55197d5e7436bdab8bac67cbf5d06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants