Bug #21478

Smart class parameter merge issue (array inside hash)

Added by thomas therouanne 7 months ago. Updated 7 months ago.

Status:New
Priority:Normal
Assigned To:-
Category:-
Target version:Team Anurag backlog
Difficulty: Bugzilla link:
Found in release:1.15.6 Pull request:
Story points-
Velocity based estimate-

Description

Array inside a hash are not merged (array and nested hash merges properly)

I try to override a parameter on a host by adding an item to a list inside a hash but the list is not merged with the default value
"Merge overrides" and "Merge default" enabled on the class parameter, datatype hash

Default parameter value:

myUser:
  sshkeys:
    - publicKey1

I want to add a specific key on a host,
host override value:

myUser:
  sshkeys:
    - publicKey2

Value kept on the host:

myUser:
  sshkeys:
    - publicKey2

Expected value on the host:

myUser:
  sshkeys:
    - publicKey1
    - publicKey2

History

#1 Updated by Kavita Gaikwad 7 months ago

  • Target version set to Team Anurag backlog

Also available in: Atom PDF