Jira (FACT-2850) Failed fact inside a structured custom fact is shown as null

17 views
Skip to first unread message

Andrei Filipovici (Jira)

unread,
Nov 4, 2020, 10:21:03 AM11/4/20
to puppe...@googlegroups.com
Andrei Filipovici updated an issue
 
Facter / Bug FACT-2850
Failed fact inside a structured custom fact is shown as null
Change By: Andrei Filipovici
Issue Type: Task Bug
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Andrei Filipovici (Jira)

unread,
Nov 4, 2020, 10:21:03 AM11/4/20
to puppe...@googlegroups.com

Andrei Filipovici (Jira)

unread,
Nov 4, 2020, 10:21:03 AM11/4/20
to puppe...@googlegroups.com
Andrei Filipovici created an issue
Issue Type: Task Task
Assignee: Unassigned
Created: 2020/11/04 7:20 AM
Priority: Normal Normal
Reporter: Andrei Filipovici

To reproduce the issue, create a custom fact file with:

# frozen_string_literal: true
 
Facter.add(:'my_fact.f1.l2') do
  setcode do
    nil.size
  end
end
 
Facter.add(:'my_fact.f1.l1') do
  setcode do
    'f1_l1_value'
  end
end

Then by requesting the custom fact my_fact with:

 bundle exec bin/facter -c ./facter/facter.conf my_fact

You'll get the following result:

{
  f1 => null,
  f2 => "f2_value"
}

Fact my_fact.fi should not be displayed.

Andrei Filipovici (Jira)

unread,
Nov 4, 2020, 10:23:03 AM11/4/20
to puppe...@googlegroups.com
Andrei Filipovici updated an issue
 
Facter / Bug FACT-2850
Change By: Andrei Filipovici
Acceptance Criteria: Fact my_fact.f1 is not displayed.

Bogdan Irimie (Jira)

unread,
Nov 5, 2020, 3:47:03 AM11/5/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Nov 5, 2020, 3:48:03 AM11/5/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: PR ghost - Triage 11.11

Sebastian Miclea (Jira)

unread,
Nov 6, 2020, 2:43:03 AM11/6/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Nov 18, 2020, 8:50:02 AM11/18/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-11.11 , ready for triage 2

Bogdan Irimie (Jira)

unread,
Nov 25, 2020, 9:04:04 AM11/25/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-11.11, ghost 25.11 , ready for triage 2

Mihai Buzgau (Jira)

unread,
Dec 9, 2020, 7:23:04 AM12/9/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages