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

puppet facts show --value-only should not display a quoted value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 7.3.0
    • Fix Version/s: PUP 7.4.0
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Sub-team:
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      The command "puppet facts show --value-only <fact>" emitted the value as a JSON string, which included quotes around the value, such as {{"RedHat"}}. It now emits just the value.
    • QA Risk Assessment:
      Needs Assessment

      Description

      When using --value-only to retrieve the value of a fact, the output is quoted:

      [root@void-musicality ~]# puppet facts show os.name --value-only
      "RedHat"
      

      It should return the unquoted value so that the output can easily be consumed by external automation.

        Attachments

          Activity

            People

            Assignee:
            josh Josh Cooper
            Reporter:
            josh Josh Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support