mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #29821 from abednarik/virtual_ret_freebsd_sysctl_module
modules.freebsd_sysctl: __virtual__ return err msg.
This commit is contained in:
commit
08e06b0c45
@ -14,9 +14,12 @@ __virtualname__ = 'sysctl'
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Only run on FreeBSD systems
|
||||
Only runs on FreeBSD systems
|
||||
'''
|
||||
return __virtualname__ if __grains__['os'] == 'FreeBSD' else False
|
||||
if __grains__['os'] == 'FreeBSD':
|
||||
return __virtualname__
|
||||
return (False, 'The freebsd_sysctl execution module cannot be loaded: '
|
||||
'only available on FreeBSD systems.')
|
||||
|
||||
|
||||
def _formatfor(name, value, config, tail=''):
|
||||
|
Loading…
Reference in New Issue
Block a user