Jira (PUP-10861) puppet facts show --value-only should not display a quoted value

12 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Jan 27, 2021, 12:36:05 PM1/27/21
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Bug PUP-10861
puppet facts show --value-only should not display a quoted value
Issue Type: Bug Bug
Affects Versions: PUP 7.3.0
Assignee: Unassigned
Created: 2021/01/27 9:35 AM
Priority: Normal Normal
Reporter: Josh Cooper

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Jan 28, 2021, 5:49:04 PM1/28/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jan 28, 2021, 6:42:04 PM1/28/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Feb 2, 2021, 11:37:03 AM2/2/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Feb 4, 2021, 5:34:03 AM2/4/21
to puppe...@googlegroups.com

@josh, please add release notes when you have some spare time

Josh Cooper (Jira)

unread,
Feb 4, 2021, 2:25:03 PM2/4/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
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.

Josh Cooper (Jira)

unread,
Feb 4, 2021, 2:26:03 PM2/4/21
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Feb 5, 2021, 4:08:04 AM2/5/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages