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

--render-as broken in puppet config print

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 5.y
    • Fix Version/s: PUP 5.5.0
    • Component/s: None
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Acceptance Criteria:
      Hide

      Using the --format option with valid values, e.g. json or yaml, should generate a valid hash of settings, e.g.

      {
        "key": "value"
      }
      

      or

      ---
      key: value
      

      The key/value should not be nested by section names, and should show the final evaluation of the value for that section using the normal section precedence rules in Puppet.

      Puppet settings only contain values that can be represented as strings, numerics or booleans, so I would expect all of those values to convert to the appropriate JSON or YAML type.

      Show
      Using the --format option with valid values, e.g. json or yaml , should generate a valid hash of settings, e.g. { "key": "value" } or --- key: value The key/value should not be nested by section names, and should show the final evaluation of the value for that section using the normal section precedence rules in Puppet. Puppet settings only contain values that can be represented as strings, numerics or booleans, so I would expect all of those values to convert to the appropriate JSON or YAML type.
    • Sub-team:
    • Team:
      Platform Core
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      --render-as option is now working for puppet config print. Supported options are json and yaml. The default format is unchanged.
    • QA Risk Assessment:
      No Action

      Description

      The --render-as option is in puppet config print's documentation and is validated, but has no effect. puppet config print should be able to opt out of having --render-as shown in its help in favor of showing a new option --format to align with puppet facts. The new --format option will need to be created.

      For example,

      puppet config print --render-as json
      

      runs successfully, but does not output json.

      puppet config print --render-as foo
      

      outputs "Error: Could not parse application options: I don't know how to render 'foo'"

      The --format types to support are json, yaml, and flat (the default, also the current output).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jorie Jorie Tappa
                Reporter:
                mbaynton Mike Baynton
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support