Replace contents of map containing a multiline string #2684
Unanswered
tomw-parsec
asked this question in
Q&A
Replies: 1 comment
-
|
To be clear |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have the source YAML
I have defined this variable in bash
I have written this expression that seems to do what I want, I.E it selects the correct key and prints the contents
This outputs:-
So I tried
But the item remains unchanged.
I have been through many iterations of this, and this is the first where the source file remains intact. Other options have overwritten the source file with either the contents of item2 or only the contents of item2.stuff. Even when over written i cannot seem to update the contents of
with the contents of
$outputWhat am I doing wrong?
Grateful for any help offered :-)
Beta Was this translation helpful? Give feedback.
All reactions