mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix for: service.enabled fails on xen server #28754
This commit is contained in:
parent
5dc7fccb07
commit
7d0f1f11cb
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,7 @@ def __virtual__():
|
|||
'''
|
||||
# Enable on these platforms only.
|
||||
enable = set((
|
||||
'XenServer',
|
||||
'RedHat',
|
||||
'CentOS',
|
||||
'ScientificLinux',
|
||||
|
@ -57,6 +58,8 @@ def __virtual__():
|
|||
'McAfee OS Server'
|
||||
))
|
||||
if __grains__['os'] in enable:
|
||||
if __grains__['os'] == 'XenServer':
|
||||
return __virtualname__
|
||||
if __grains__['os'] == 'SUSE':
|
||||
if str(__grains__['osrelease']).startswith('11'):
|
||||
return __virtualname__
|
||||
|
|
Loading…
Add table
Reference in a new issue