From 3382e9d17dc08179e7559e19d8f218d9d54ad5e5 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 17 Oct 2013 12:40:43 +0100 Subject: [PATCH] `salt.modules.darwin_sysctl` is now using `__virtualname__` --- salt/modules/darwin_sysctl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/salt/modules/darwin_sysctl.py b/salt/modules/darwin_sysctl.py index fd2ef4ad3d..950e2d7ed9 100644 --- a/salt/modules/darwin_sysctl.py +++ b/salt/modules/darwin_sysctl.py @@ -10,12 +10,15 @@ import os import salt.utils from salt.exceptions import CommandExecutionError +# Define the module's virtual name +__virtualname__ = 'sysctl' + def __virtual__(): ''' Only run on Darwin (OS X) systems ''' - return 'sysctl' if __grains__['os'] == 'MacOS' else False + return __virtualname__ if __grains__['os'] == 'MacOS' else False def show():