Jira (PUP-10884) Using 'puppet facts show' with a fact that doesn't exist gives conversion error

2 views
Skip to first unread message

Nick Burgan (Jira)

unread,
Feb 1, 2021, 12:27:04 PM2/1/21
to puppe...@googlegroups.com
Nick Burgan created an issue
 
Puppet / Bug PUP-10884
Using 'puppet facts show' with a fact that doesn't exist gives conversion error
Issue Type: Bug Bug
Affects Versions: PUP 6.20.0
Assignee: Unassigned
Created: 2021/02/01 9:26 AM
Priority: Normal Normal
Reporter: Nick Burgan

Puppet Version: 6.20.0
Puppet Server Version: 2019.8.x latest
OS Name/Version: Centos 7

When running 'puppet facts show <fact_name>', if fact_name doesn't exist, rather than the error saying so, you get

[root@cute-remainder ~]# puppet facts show abcd
Error: no implicit conversion of Symbol into Integer
Error: Try 'puppet help facts find' for usage

Whereas on 7.x you get

[root@choosy-trio ~]# puppet facts show abcd
{
  “abcd”: “”
}

Desired Behavior:
Either a blank value is returned, or an error is given that tells the user the fact doesn't exist.

Actual Behavior:
Symbol to integer conversion error

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages