Skip to content

Profile and domain domconfs not merge currectly #99

@rayderua

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions