mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
modules.freebsd_sysctl: __virtual__ return err msg.
Added message when return False if OS is not FreeBSD.
This commit is contained in:
parent
c7d3ac58ef
commit
aa9e3ac4c8
@ -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