Project

General

Profile

Actions

Bug #21478

open

Smart class parameter merge issue (array inside hash)

Added by thomas therouanne over 6 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
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

Actions #1

Updated by Kavita Gaikwad over 6 years ago

  • Target version set to 1.15.6
Actions #2

Updated by Tomer Brisker over 5 years ago

  • Target version deleted (1.15.6)
Actions

Also available in: Atom PDF