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

PCore resource output improperly quoted

    XMLWordPrintable

Details

    • Agent
    • 3
    • Agent 2017-06-14
    • Bug Fix
    • 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.
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support