salt.modules.solaris_group is now using __virtualname__

This commit is contained in:
Pedro Algarvio 2013-10-17 13:46:48 +01:00
parent 1d1f65e30a
commit ee46feb036

View File

@ -18,12 +18,15 @@ try:
except ImportError:
pass
# Define the module's virtual name
__virtualname__ = 'group'
def __virtual__():
'''
Set the group module if the kernel is SunOS
'''
return 'group' if __grains__['kernel'] == 'SunOS' else False
return __virtualname__ if __grains__['kernel'] == 'SunOS' else False
def add(name, gid=None, **kwargs):