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

Fix json output of puppet facts show action

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 7.0.0
    • None
    • Night's Watch
    • 3
    • ghost-21.10, ghost-28.10
    • Needs Assessment
    • Not Needed
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support