-
I have following root:
- name: First
some_value: One
- name: Second
some_value: Two and defaults:
other_value: true
one_more: Three The expected result is: root:
- name: First
some_value: One
other_value: true
one_more: Three
- name: Second
some_value: Two
other_value: true
one_more: Three
I tried following command:
but the result is: name: First
some_value: One
other_value: true
one_more: Three
name: Second
some_value: Two
other_value: true
one_more: Three |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Aug 23, 2022
Replies: 1 comment
-
The expression you have at the moment is basically calculating A op B, and returning the result of that (e.g. 3 x 4). Whereas what you actually want to do is update each element of To do that, you need to:
Alternatively, you can use the new
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
msmolka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The expression you have at the moment is basically calculating A op B, and returning the result of that (e.g. 3 x 4). Whereas what you actually want to do is update each element of
root
with that value.To do that, you need to:
Alternatively, you can use the new
load
operator which simplifies this a little: