Actions
Bug #10103
openhash resource yaml double conversion producing '\' symbols
Status:
New
Priority:
Normal
Assignee:
-
Category:
Parameters
Target version:
-
Description
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 "\":
{"/root/test.txt":{"ensure":"present","content":"environment: production\nemail-errors-to:\n - xxxxxxxxxx@example.com\n - yyyyyyyyyy@example.com\n"}}
Produces following yaml and file itself:
######### /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 #########
Thanks,
Mikhail.
Updated by Dominic Cleal about 9 years ago
- Description updated (diff)
- Category changed from Puppet integration to Parameters
- Difficulty deleted (
medium)
Actions