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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PUP 7.3.0
    • PUP 7.4.0
    • None
    • Night's Watch
    • Needs Assessment
    • Bug Fix
    • 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.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support