Details
Description
If you have the following statement in your erb template:
<%= {"key1"=>"value1", "key2"=>"value2"}.to_yaml %>
|
The output produced by Puppet is (Please note the indents on each line of the "data" block):
---
|
key1: value1
|
key2: value2
|
But it should be:
---
|
key1: value1
|
key2: value2
|
irb creates the expected output. A quick and ugly fix is:
<%= {"key1"=>"value1", "key2"=>"value2"}.to_yaml.gsub(/^\s{2}/, '') %>
|
This command removes the additional indents, but this approach is not a feasible solution.
Please fix the issue. It was first discussed here:
http://stackoverflow.com/questions/25404774/unexpected-indent-in-puppets-erb-template-output
Attachments
Issue Links
- duplicates
-
PUP-1019 Remove ZAML
-
- Closed
-