Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deepmerge yaml array overriding #368

Open
MostefaKamalLala opened this issue Mar 13, 2024 · 0 comments
Open

Deepmerge yaml array overriding #368

MostefaKamalLala opened this issue Mar 13, 2024 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@MostefaKamalLala
Copy link

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

@MostefaKamalLala MostefaKamalLala added the bug 🐛 An issue with the system label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant