mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #24873 from jfindlay/rh_service
convert osrelease grain to str before str op
This commit is contained in:
commit
4e8ed0d8ed
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def __virtual__():
|
|||
))
|
||||
if __grains__['os'] in enable:
|
||||
if __grains__['os'] == 'SUSE':
|
||||
if __grains__['osrelease'].startswith('11'):
|
||||
if str(__grains__['osrelease']).startswith('11'):
|
||||
return __virtualname__
|
||||
else:
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue