| 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. |