Skip to content

Commit

Permalink
salt.modules.solaris_group is now using __virtualname__
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Oct 17, 2013
1 parent 1d1f65e commit ee46feb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion salt/modules/solaris_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
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):
Expand Down

0 comments on commit ee46feb

Please sign in to comment.