Added lxc in virt-what list.

This should help detecting LXC containers as virtual
This commit is contained in:
abednarik 2015-12-09 22:17:08 -03:00
parent f65501fff4
commit d554583f76

View File

@ -560,7 +560,7 @@ def _virtual(osdata):
grains['virtual'] = 'LXC'
break
elif command == 'virt-what':
if output in ('kvm', 'qemu', 'uml', 'xen'):
if output in ('kvm', 'qemu', 'uml', 'xen', 'lxc'):
grains['virtual'] = output
break
elif 'vmware' in output: