Actions
Bug #25483
closedCustom boolean facts with false value are not imported
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1650127
Description of problem:
Custome Boolean Puppet facts with value False are not on the WebUI, Hammer output or with REST API. Only facts with value True are shown/stored.
Version-Release number of selected component (if applicable):
Satellite 6.4
Puppet 5
How reproducible:
Always
Steps to Reproduce:
In /opt/puppetlabs/puppet/cache/lib/facter
- cat temp.rb
require 'facter'
Facter.add("always_true") do
confine :kernel => "Linux"
setcode do
true
end
end
Facter.add("always_false") do
confine :kernel => "Linux"
setcode do
false
end
end
- False value is not displayed
- hammer fact list --search "name=always_true"
----------------------|-------------|------
HOST | FACT | VALUE
----------------------|-------------|------
lvmpig03 | always_true | true
----------------------|-------------|------
- False value should be displayed
- hammer fact list --search "name=always_false"
----------------------|-------------|------
HOST | FACT | VALUE
----------------------|-------------|------
lvmpig03 | always_false | false
lvmpig03 | always_true | true
----------------------|-------------|------
Updated by Marek Hulán about 6 years ago
- Subject changed from Custom boolean facts with false value are not managed by Satellite. to Custom boolean facts with false value are not managed by Satellite.
- Status changed from New to Assigned
- Assignee set to Marek Hulán
in fact we ignore all false facts, not just custom
Updated by Marek Hulán about 6 years ago
- Project changed from Ansible to Foreman
- Category set to Facts
Updated by The Foreman Bot about 6 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6253 added
Updated by Marek Hulán about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset c589418990d6cb1849f43973702f9a353c6c2d71.
Updated by Ewoud Kohl van Wijngaarden about 6 years ago
- Subject changed from Custom boolean facts with false value are not managed by Satellite. to Custom boolean facts with false value are not imported
Updated by Ewoud Kohl van Wijngaarden almost 6 years ago
- Related to Bug #23960: Foreman - "fips_enabled" Puppet Fact is not Parsed Correctly added
Updated by Ewoud Kohl van Wijngaarden almost 6 years ago
- Has duplicate Bug #25949: Boolean false facts do not show up in the web UI added
Updated by Ewoud Kohl van Wijngaarden almost 6 years ago
- Related to deleted (Bug #23960: Foreman - "fips_enabled" Puppet Fact is not Parsed Correctly)
Updated by Ewoud Kohl van Wijngaarden almost 6 years ago
- Related to Bug #23960: Foreman - "fips_enabled" Puppet Fact is not Parsed Correctly added
Updated by Ewoud Kohl van Wijngaarden almost 6 years ago
- Related to deleted (Bug #23960: Foreman - "fips_enabled" Puppet Fact is not Parsed Correctly)
Updated by Ewoud Kohl van Wijngaarden almost 6 years ago
- Has duplicate Bug #23960: Foreman - "fips_enabled" Puppet Fact is not Parsed Correctly added
Actions