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

regression: puppet resource --to_yaml should not emit puppet class tags

    XMLWordPrintable

Details

    • 45047
    • 1
    • Bug Fix
    • Fix puppet resource --to_yaml emitting puppet class tags (e.g Puppet::Util::Execution::ProcessOutput) by ensuring that PScalarDataType only checks the instance of String, and not other subclasses
    • Needs Assessment

    Description

      From https://tickets.puppetlabs.com/browse/PUP-7808?focusedCommentId=693345&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-693345

      This change caused a regression. The option --to_yaml no longer generates syntactically valid YAML.

      Before pull request #7718:

      mysql_database:
        PERCONA_SCHEMA:
          ensure : 'present'
          charset: 'utf8'
          collate: 'utf8_general_ci'
      

      After pull request #7718:

      mysql_database:
        PERCONA_SCHEMA:
          ensure: present
          charset: !ruby/string:Puppet::Util::Execution::ProcessOutput utf8
          collate: !ruby/string:Puppet::Util::Execution::ProcessOutput utf8_general_ci
      

      Attachments

        Issue Links

          Activity

            People

              victor.bobosila Victor Bobosila
              josh Josh Cooper
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support