mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #2839 from LucianoCavalheiro/devel
Fix #2836. Ensure proper handling of option "system=yes" in module "grou...
This commit is contained in:
commit
29d1b08db4
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ class Group(object):
|
||||||
if key == 'gid' and kwargs[key] is not None:
|
if key == 'gid' and kwargs[key] is not None:
|
||||||
cmd.append('-g')
|
cmd.append('-g')
|
||||||
cmd.append(kwargs[key])
|
cmd.append(kwargs[key])
|
||||||
elif key == 'system' and kwargs[key] == 'yes':
|
elif key == 'system' and kwargs[key] == True:
|
||||||
cmd.append('-r')
|
cmd.append('-r')
|
||||||
cmd.append(self.name)
|
cmd.append(self.name)
|
||||||
return self.execute_command(cmd)
|
return self.execute_command(cmd)
|
||||||
|
@ -189,7 +189,7 @@ class AIX(Group):
|
||||||
for key in kwargs:
|
for key in kwargs:
|
||||||
if key == 'gid' and kwargs[key] is not None:
|
if key == 'gid' and kwargs[key] is not None:
|
||||||
cmd.append('id='+kwargs[key])
|
cmd.append('id='+kwargs[key])
|
||||||
elif key == 'system' and kwargs[key] == 'yes':
|
elif key == 'system' and kwargs[key] == True:
|
||||||
cmd.append('-a')
|
cmd.append('-a')
|
||||||
cmd.append(self.name)
|
cmd.append(self.name)
|
||||||
return self.execute_command(cmd)
|
return self.execute_command(cmd)
|
||||||
|
|
Loading…
Reference in a new issue