| This feature was tested manually and it works, however the test is failing in our CI. we need to figure out why. Tested manually with the following fact: ``` Facter.add(:foo) do setcode do Facter::Util::Resolution.exec('/usr/bin/false') "/usr/bin/false exited with code: % {status} " % {status: $?.exitstatus} end ``` telescopic-item:~ root# env FACTERLIB=$PWD/exit_code_test facter foo /usr/bin/false exited with code: 1 telescopic-item:~ root# facter --version 4.0.50
telescopic-item:~ root# facter os |
{ |
architecture => "x86_64", |
family => "Darwin", |
hardware => "x86_64", |
macosx => { |
build => "18C54", |
product => "Mac OS X", |
version => { |
full => "10.14.2", |
major => "10.14", |
minor => "2" |
} |
}, |
name => "Darwin", |
release => { |
full => "18.2.0", |
major => "18", |
minor => "2" |
} |
}
|
|