Skip to content

Profile and domain domconfs not merge currectly #99

Description

@rayderua

here is a problem with merging nested hashes using +: they are not merged deeply.

Example:

$h1 = { 'a' => { 'x' => 1, 'y' => 2 }, 'b' => 1 }
$h2 = { 'a' => { 'y' => 99 } }
$h3 = $h1 + $h2
'''
Result:

{ a => { y => 99 }, b => 1 }

As a result, we cannot correctly merge the domain domconf with the profile domconf.
The solution is to use deep_merge() instead.

PR for fix

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions