mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added lxc in virt-what list.
This should help detecting LXC containers as virtual
This commit is contained in:
parent
c3014be84b
commit
2c73990ff2
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,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:
|
||||
|
|
Loading…
Add table
Reference in a new issue