ansible-config_template/tests/files/test_multiline_strs.json.expected
Dmitriy Rabotyagov 13b52a62cd Respect yml_multilines for JSON configs
At the moment there is no good way to have new lines ("\n") in JSON
files and not to convert the result to a list.
In the meanwhile this can be totally expected/required thing to do,
for example to define cloud-init vendor data [1]

[1] https://cloudinit.readthedocs.io/en/latest/reference/datasources/openstack.html#vendor-data

Related-Bug: #2073171
Change-Id: I00d74a26357a8458e38d9eb816a3f3eceeae1e0d
2024-07-16 13:26:14 +02:00

8 lines
236 B
Plaintext

{
"cloud-init": "#cloud-config\npackage_upgrade: True\npackages:\n - htop",
"list": [
"Curious cat investigates",
"a ball of yarn in sight"
],
"string": "Freshly baked cookies\n, waiting to be enjoyed."
}