Jira (FACT-3057) Facter ruby API/binding fails to resolve facts from environment variables

11 views
Skip to first unread message

Adam Tkac (Jira)

unread,
Jul 23, 2021, 4:13:04 AM7/23/21
to puppe...@googlegroups.com
Adam Tkac created an issue
 
Facter / Bug FACT-3057
Facter ruby API/binding fails to resolve facts from environment variables
Issue Type: Bug Bug
Affects Versions: FACT 4.2.2
Assignee: Unassigned
Created: 2021/07/23 1:12 AM
Priority: Normal Normal
Reporter: Adam Tkac

Hello,

during regular upgrade of our puppet ecosystem, we upgraded facter from 4.0.51 version to 4.2.2 version and hit issue, that ruby API/bindings fails to resolve facts from environment variables.

Reproducer:

# cat fact.rb
require 'facter'
 
puts(Facter.value(:myfact))

# export FACTER_MYFACT=barani
# ruby fact.rb

With facter 4.0.51, fact.rb script returns the fact, with facter 4.2.2 it fails to return the fact.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Jul 27, 2021, 10:40:03 AM7/27/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jul 27, 2021, 10:40:04 AM7/27/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Aug 11, 2021, 4:56:02 AM8/11/21
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
Aug 16, 2021, 5:26:02 AM8/16/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Sep 8, 2021, 10:14:02 AM9/8/21
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Sep 9, 2021, 8:28:02 AM9/9/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages