mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #29869 from abednarik/virtual_ret_openbsd_sysctl_module
modules.openbsd_sysctl: __virtual__ return err msg.
This commit is contained in:
commit
543e274e04
@ -17,7 +17,10 @@ def __virtual__():
|
||||
'''
|
||||
Only run on OpenBSD systems
|
||||
'''
|
||||
return __virtualname__ if __grains__['os'] == 'OpenBSD' else False
|
||||
if __grains__['os'] == 'OpenBSD':
|
||||
return __virtualname__
|
||||
return (False, 'The openbsd_sysctl execution module cannot be loaded: '
|
||||
'only available on FreeBSD systems.')
|
||||
|
||||
|
||||
def show(config_file=False):
|
||||
|
Loading…
Reference in New Issue
Block a user