Skip to content

Deepmerge yaml array overridingΒ #368

@MostefaKamalLala

Description

@MostefaKamalLala

Describe the Bug

If I deep merge for exemple:
yaml-1:

root:
  key1:
    array:
       - key: yaml-1
         value: yaml-1

yaml-2:

root:
  key1:
    array:
       - key: yaml-2
         value: yaml-2

but it is producing
resulting-yaml:

root:
  key1:
    array:
       - key: yaml-2
         value: yaml-2

Expected Behavior

resulting-yaml:

root:
  key1:
    array:
       - key: yaml-1
         value: yaml-1
       - key: yaml-2
         value: yaml-2

Steps to Reproduce

2 yaml as described using utils_deep_merge_yaml

Screenshots

No response

Environment

Terraform v1.6.2
on windows_386

  • provider registry.terraform.io/cloudposse/utils v1.18.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugπŸ› An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions