Jira (PUP-10884) 'puppet facts show' always gives conversion error

4 views
Skip to first unread message

Nick Burgan (Jira)

unread,
Feb 1, 2021, 12:31:03 PM2/1/21
to puppe...@googlegroups.com
Nick Burgan updated an issue
 
Puppet / Bug PUP-10884
'puppet facts show' always gives conversion error
Change By: Nick Burgan
Summary: Using 'puppet facts show' with a fact that doesn't exist always gives conversion error
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Nick Burgan (Jira)

unread,
Feb 1, 2021, 12:32:04 PM2/1/21
to puppe...@googlegroups.com
Nick Burgan updated an issue
*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 it seems to always give a conversion error saying so, you get .
{code}
[root@cute-remainder ~]# puppet facts show
abcd operatingsystem
Error: no implicit conversion of Symbol into Integer
Error: Try 'puppet help facts find' for usage
{code}
Whereas on Appears to be limited to 6.x, as 7.x you get
{code}
[root@choosy-trio ~]# puppet facts show abcd
{
  “abcd”: “”
}
{code}

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

*Actual Behavior:*
Symbol to integer conversion error

Reply all
Reply to author
Forward
0 new messages