Merge pull request #31629 from darix/fix-services-on-sles

Fix services on sles
This commit is contained in:
Mike Place 2016-03-03 09:41:27 -07:00
commit 118fcde425
2 changed files with 3 additions and 2 deletions

View file

@ -66,8 +66,8 @@ def __virtual__():
return (False, 'Cannot load rh_service module: '
'osrelease grain, {0}, not a float,'.format(osrelease))
if __grains__['os'] == 'SUSE':
if osrelease > 11:
return (False, 'Cannot load rh_service module on SUSE >= 11')
if osrelease >= 12:
return (False, 'Cannot load rh_service module on SUSE >= 12')
if __grains__['os'] == 'Fedora':
if osrelease > 15:
return (False, 'Cannot load rh_service module on Fedora >= 15')

View file

@ -37,6 +37,7 @@ def __virtual__():
'Arch ARM',
'ALT',
'SUSE Enterprise Server',
'SUSE',
'OEL',
'Linaro',
'elementary OS',