mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Check for existence of 'virtual' in __grains__ first.
This was breaking the minion on Windows.
This commit is contained in:
parent
0ed1253036
commit
f8edc920bc
@ -42,6 +42,8 @@ def __virtual__():
|
|||||||
'''
|
'''
|
||||||
Apply this module as the hyper module if the minion is a kvm hypervisor
|
Apply this module as the hyper module if the minion is a kvm hypervisor
|
||||||
'''
|
'''
|
||||||
|
if 'virtual' not in __grains__:
|
||||||
|
return False
|
||||||
if __grains__['virtual'] != 'physical':
|
if __grains__['virtual'] != 'physical':
|
||||||
return False
|
return False
|
||||||
if 'kvm_' not in open('/proc/modules').read():
|
if 'kvm_' not in open('/proc/modules').read():
|
||||||
|
Loading…
Reference in New Issue
Block a user