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

Fix json output of puppet facts show action

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 7.0.0
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Sub-team:
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      ghost-21.10, ghost-28.10
    • Method Found:
      Needs Assessment
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: main branch
      Puppet Server Version:
      OS Name/Version: All

      By default puppet facts show output is rendered as json. The json output is not pretty printed.

      Desired Behavior:

      `"os": {
      "name": "Darwin",
      "hardware": "x86_64",
      "architecture": "x86_64",
      "family": "Darwin",
      "release": {
      "full": "18.7.0",
      "major": "18",
      "minor": "7"
      },
      "macosx": {
      "build": "18G95",
      "product": "Mac OS X",
      "version": {
      "full": "10.14.6",
      "major": "10.14",
      "minor": "6"
      }
      }}`

      Actual Behavior:

       The output for os query :

      `{"os":{"architecture":"x86_64","family":"Darwin","hardware":"x86_64","macosx":{"build":"18G95","product":"Mac OS X","version":{"full":"10.14.6","major":"10.14","minor":"6"}},"name":"Darwin","release":{"full":"18.7.0","major":"18","minor":"7"}}}`

        Attachments

          Activity

            People

            Assignee:
            oana.tanasoiu Oana Tanasoiu
            Reporter:
            oana.tanasoiu Oana Tanasoiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support