Project

General

Profile

Bug #21478

Smart class parameter merge issue (array inside hash)

Added by thomas therouanne 10 months ago. Updated 24 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

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 10 months ago

  • Target version set to 1.15.6

#2 Updated by Tomer Brisker 24 days ago

  • Target version deleted (1.15.6)

Also available in: Atom PDF