Project

General

Profile

Actions

Bug #10103

open

hash resource yaml double conversion producing '\' symbols

Added by Mikhail Shevtsov about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Parameters
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Mikhail Shevtsov about 9 years ago

formating broken

Actions #2

Updated by Dominic Cleal about 9 years ago

  • Description updated (diff)
  • Category changed from Puppet integration to Parameters
  • Difficulty deleted (medium)
Actions

Also available in: Atom PDF