The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:
virtual fact with virt-what installed produces bogus output for non-root users
|Keywords:||Affected Facter version:||1.6.18|
Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com
When the virt-what program is present, facter tries to use this via Facter::Util::Virtual.virt_what. The problem is that virt-what only produces a warning to stdout for non-root users.
$ facter —version; facter virtual 1.6.18 virt-what: this script must be run as root
There is a long-standing bug for virt-what to work as non-root¹, but until that is resolved, facter should not rely on its output when run as non-root.
#2 Updated by Todd Zullinger about 3 years ago
- Status changed from Unreviewed to In Topic Branch Pending Review
- Branch set to https://github.com/tmzullinger/facter/branches/tickets/1.6.x/19989-virt-what-ignore-cruft
I submitted a pull request for a fix to ignore bogus virt-what: output, until virt-what is changed to not send such output to stdout.