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

Merging into dict from loop create new key #107

Closed
robcxyz opened this issue Nov 30, 2022 · 0 comments
Closed

Merging into dict from loop create new key #107

robcxyz opened this issue Nov 30, 2022 · 0 comments

Comments

@robcxyz
Copy link
Collaborator

robcxyz commented Nov 30, 2022

Related to #66, when merging into a dict from a loop, we should be creating new keys.

resources:
  name: operator
  type: helm
  do some merge->: literal {'foo-{{index}}':'foo-{{index}}'} --for [1,2,3] --merge

Now creates:

resources: 
  foo-2: foo-2

Which should be:

resources: 
  name: operator
  type: helm
  foo-0: foo-0
  foo-1: foo-1
  foo-2: foo-2

This is an edge case that practically has no purpose but should be accounted for.

robcxyz added a commit that referenced this issue Dec 7, 2022
Append to list or add new key with merge in loop #66 #107
@robcxyz robcxyz closed this as completed Jun 15, 2023
robcxyz added a commit that referenced this issue Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant