Closed
Description
Describe the Bug
Error in facter when use podman-docker.rpm on RHEL-8
puppet agent -t
Info: Using configured environment 'develop'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Facter: error while resolving custom fact "docker": undefined method `[]' for nil:NilClass #<--- this ERROR
Info: Caching catalog for prod-bis-mmisc1.scartel.dc
Info: Applying configuration version '1621517818'
Notice: Applied catalog in 8.78 seconds
Expected Behavior
Add support for podman to /opt/puppetlabs/puppet/cache/lib/facter/docker.rb
/opt/puppetlabs/puppet/bin/facter --custom-dir /opt/puppetlabs/puppet/cache/lib/facter/ docker
# Expected - json with docker info
# in fact - nothing
Steps to Reproduce
install podman-docker.noarch from repo os-rhel8-appstream
run puppet agent -t
or run /opt/puppetlabs/puppet/bin/facter --custom-dir /opt/puppetlabs/puppet/cache/lib/facter/ -d docker
Environment
- OS: Red Hat Enterprise Linux release 8.3 (Ootpa)
- puppet: 5.5.22
- podman version 2.2.1
- facter: 3.11.14 (commit 2f05c0b208c0848bc0052ac7abf772754f4b79da)