mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
salt.modules.pw_group
is now using __virtualname__
This commit is contained in:
parent
082fa88598
commit
7cb0636e56
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user