Bug #10103
Updated by Dominic Cleal about 9 years ago
Good day. Tried to find workaround by myself for a long time without success. The problem is if I create hash resource using ether yaml syntax or json like in following example it hits some kind of internal limit on line length and if next line starts with space it creates "\": <pre> {"/root/test.txt":{"ensure":"present","content":"environment: production\nemail-errors-to:\n - xxxxxxxxxx@example.com\n - yyyyyyyyyy@example.com\n"}} </pre> Produces following yaml and file itself: <pre> ######### /root/test.txt: ensure: present content: ! "environment: production\nemail-errors-to:\n - xxxxxxxxxx@example.com\n \ - yyyyyyyyyy@example.com\n" ######### environment: production email-errors-to: - xxxxxxxxxx@example.com \ - yyyyyyyyyy@example.com ######### </pre> Thanks, Mikhail.