mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #21918 from rallytime/bp-21885
Backport #21885 to 2014.7
This commit is contained in:
commit
334a7b8b4f
@ -1542,8 +1542,6 @@ def is_kvm_hyper():
|
|||||||
|
|
||||||
salt '*' virt.is_kvm_hyper
|
salt '*' virt.is_kvm_hyper
|
||||||
'''
|
'''
|
||||||
if __grains__['virtual'] != 'physical':
|
|
||||||
return False
|
|
||||||
try:
|
try:
|
||||||
if 'kvm_' not in salt.utils.fopen('/proc/modules').read():
|
if 'kvm_' not in salt.utils.fopen('/proc/modules').read():
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user