diff --git a/salt/modules/openbsd_sysctl.py b/salt/modules/openbsd_sysctl.py index c2d0d3aed2..e74c3933f7 100644 --- a/salt/modules/openbsd_sysctl.py +++ b/salt/modules/openbsd_sysctl.py @@ -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):