Remove *args, pass gid as a keyword

This commit is contained in:
twangboy 2017-10-12 16:00:40 -06:00
parent 5230ecd7e1
commit aa278966de
No known key found for this signature in database
GPG Key ID: 93FF3BDEB278C9EB
2 changed files with 2 additions and 4 deletions

View File

@ -36,7 +36,7 @@ def __virtual__():
return (False, "Module win_groupadd: module only works on Windows systems")
def add(name, *args, **kwargs):
def add(name, **kwargs):
'''
Add the specified group

View File

@ -244,9 +244,7 @@ def present(name,
return ret
# Group is not present, make it.
if __salt__['group.add'](name,
gid,
system=system):
if __salt__['group.add'](name, gid=gid, system=system):
# if members to be added
grp_members = None
if members: