salt.modules.pw_group is now using __virtualname__

This commit is contained in:
Pedro Algarvio 2013-10-17 13:38:29 +01:00
parent 082fa88598
commit 7cb0636e56

View File

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