mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Simplify LooseVersion check in __virtual__
check in mac_assistive module
This commit is contained in:
parent
5b7544eaa0
commit
d52b3689d9
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def __virtual__():
|
|||
'''
|
||||
if not salt.utils.platform.is_darwin():
|
||||
return False, 'Must be run on macOS'
|
||||
if not _LooseVersion(__grains__['osrelease']) >= salt.utils.stringutils.to_str('10.9'):
|
||||
if _LooseVersion(__grains__['osrelease']) < salt.utils.stringutils.to_str('10.9'):
|
||||
return False, 'Must be run on macOS 10.9 or newer'
|
||||
return __virtualname__
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue