mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #29958 from abednarik/virtual_ret_softwareupdate_module
modules.softwareupdate: __virtual__ return err msg.
This commit is contained in:
commit
2826403a9e
@ -19,7 +19,10 @@ def __virtual__():
|
||||
'''
|
||||
Only for MacOS
|
||||
'''
|
||||
return __virtualname__ if __grains__['os'] == 'MacOS' else False
|
||||
if __grains__['os'] == 'MacOS':
|
||||
return __virtualname__
|
||||
return (False, 'The softwareupdate module could not be loaded: '
|
||||
'module only works on MacOS systems.')
|
||||
|
||||
|
||||
def _get_upgradable(rec=False, restart=False):
|
||||
|
Loading…
Reference in New Issue
Block a user