-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi,
f['content'] = '|\n' + new_content
Is incorrect and it should not include '|\n'.
I believe the intent was that
write-files:
content: |
stringwould have been the result, but that is not what the code does. The code simply is prefixing the string with | as the first line. Simply by changing f['content'] = '|\n' + new_content to f['content'] = new_content should fix the issue in all cases as then the cloud-init write-file looks like this.
write-files:
contnet: "{\"parameter\": \"value\"}"and this is also valid.
I changed the code on my system and tested it but only with using the jinja2 templating functionality.
Metadata
Metadata
Assignees
Labels
No labels