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