Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7808

puppet resource <...> --to_yaml mishandles structured resource values

    XMLWordPrintable

Details

    • 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

          Activity

            People

              josh Josh Cooper
              wyatt Wyatt Alt
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support