Merge pull request #29869 from abednarik/virtual_ret_openbsd_sysctl_module

modules.openbsd_sysctl: __virtual__ return err msg.
This commit is contained in:
Mike Place 2015-12-21 09:45:25 -07:00
commit 543e274e04

View File

@ -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):