Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Coremunity
-
Platform Core KANBAN
-
Needs Assessment
-
Bug Fix
-
The "puppet resource --to_yaml" and "puppet device --to_yaml" did not generate valid YAML when the output contained special characters such as a single quote.
-
Needs Assessment
Description
I'm specifically experiencing this with
puppet resource ec2_instance --to_yaml
|
using the puppetlabs-aws module from the forge. The module itself doesn't seem to be touching any yaml related stuff. Without the yaml flag I get this data: https://gist.github.com/wkalt/a97a42b84b1afc3cd23236ea32eed3fa and using the yaml flag I get https://gist.github.com/wkalt/a97a42b84b1afc3cd23236ea32eed3fa . Note that the former has ruby maps embedded, which is the bug.
Attachments
Issue Links
- blocks
-
PUP-4182 add a flag to get JSON output from puppet resource
-
- Accepted
-
- is duplicated by
-
PUP-8750 puppet resource user --to_yaml produces invalid yaml on solaris
-
- Closed
-
-
PUP-8704 resource.rb: to_hierayaml does not escape the title
-
- Closed
-
- relates to
-
PUP-10105 regression: puppet resource --to_yaml should not emit puppet class tags
-
- Resolved
-