The vendored version of virt-what shipped by Facter 3.14.23 (puppet-agent 6.27.1-1focal) is configured to run with '/bin/sh':
$ head -n1 /opt/puppetlabs/puppet/bin/virt-what
#!/bin/sh -
But it contains bashisms ("[["):
# /opt/puppetlabs/puppet/bin/virt-what
/opt/puppetlabs/puppet/bin/virt-what: 363: [[: not found
Hi sdeziel ,
Thank you for filing this ticket. These changes would need to be made upstream in the virt-what project, please follow up with them.
Thank you