mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
modules.darwin_sysctl: __virtual__ return err msg.
Updated message in darwin_sysctl module when return False if OS is not OSX.
This commit is contained in:
parent
f74ca15f50
commit
2cf6f36d89
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,10 @@ def __virtual__():
|
|||
'''
|
||||
Only run on Darwin (OS X) systems
|
||||
'''
|
||||
return __virtualname__ if __grains__['os'] == 'MacOS' else False
|
||||
if __grains__['os'] == 'MacOS':
|
||||
return __virtualname__
|
||||
return (False, 'The darwin_sysctl execution module cannot be loaded: '
|
||||
'only available on MacOS systems.')
|
||||
|
||||
|
||||
def show(config_file=False):
|
||||
|
|
Loading…
Add table
Reference in a new issue