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

PCore resource output improperly quoted

    XMLWordPrintable

    Details

    • Template:
    • Sub-team:
    • Team:
      Agent
    • Story Points:
      3
    • Sprint:
      Agent 2017-06-14
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      The command {{puppet resource}} could output information about resources that could not be directly used in a puppet manifest due to errors related to quoting and escaped characters. This has now been cleaned up.
    • QA Risk Assessment:
      No Action

      Description

      When using Thomas Hallgren rich-data-wip branch PCore resources are output with incorrect top level quoting:

      $ puppet resource xe_ietf_ospf
      xe_ietf_ospf { '100':
        routing_instance => 'Vanilla_ice::Ospf::Routing_instance({ #<-This value should not be quoted
        'name' => 'default',
        'description' => 'default-vrf [read-only]',
        'routing_protocols' => Vanilla_ice::Ospf::Routing_protocols({
      ...
      

      Thomas Hallgren's best guess is "Resource #to_s just quotes everything that it doesn't recognize in single qoutes"

      This prevents users from directly copying the output of a PCore resource into a manifest.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              richard.sherman Rick Sherman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support