diff --git a/salt/modules/pw_group.py b/salt/modules/pw_group.py index 1d63e09a60..fdfc2bce32 100644 --- a/salt/modules/pw_group.py +++ b/salt/modules/pw_group.py @@ -18,12 +18,15 @@ try: except ImportError: pass +# Define the module's virtual name +__virtualname__ = 'group' + def __virtual__(): ''' Set the user module if the kernel is Linux ''' - return 'group' if __grains__['kernel'] == 'FreeBSD' else False + return __virtualname__ if __grains__['kernel'] == 'FreeBSD' else False def add(name, gid=None, **kwargs):