Updating the other classes in the group module to match #7249
This commit is contained in:
parent
4ca9ebf084
commit
936daf6f63
1 changed files with 4 additions and 4 deletions
|
@ -206,7 +206,7 @@ class AIX(Group):
|
||||||
if len(cmd) == 1:
|
if len(cmd) == 1:
|
||||||
return (None, '', '')
|
return (None, '', '')
|
||||||
if self.module.check_mode:
|
if self.module.check_mode:
|
||||||
return (True, '', '')
|
return (0, '', '')
|
||||||
cmd.append(self.name)
|
cmd.append(self.name)
|
||||||
return self.execute_command(cmd)
|
return self.execute_command(cmd)
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ class FreeBsdGroup(Group):
|
||||||
# modify the group if cmd will do anything
|
# modify the group if cmd will do anything
|
||||||
if cmd_len != len(cmd):
|
if cmd_len != len(cmd):
|
||||||
if self.module.check_mode:
|
if self.module.check_mode:
|
||||||
return (True, '', '')
|
return (0, '', '')
|
||||||
return self.execute_command(cmd)
|
return self.execute_command(cmd)
|
||||||
return (None, '', '')
|
return (None, '', '')
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ class OpenBsdGroup(Group):
|
||||||
if len(cmd) == 1:
|
if len(cmd) == 1:
|
||||||
return (None, '', '')
|
return (None, '', '')
|
||||||
if self.module.check_mode:
|
if self.module.check_mode:
|
||||||
return (True, '', '')
|
return (0, '', '')
|
||||||
cmd.append(self.name)
|
cmd.append(self.name)
|
||||||
return self.execute_command(cmd)
|
return self.execute_command(cmd)
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ class NetBsdGroup(Group):
|
||||||
if len(cmd) == 1:
|
if len(cmd) == 1:
|
||||||
return (None, '', '')
|
return (None, '', '')
|
||||||
if self.module.check_mode:
|
if self.module.check_mode:
|
||||||
return (True, '', '')
|
return (0, '', '')
|
||||||
cmd.append(self.name)
|
cmd.append(self.name)
|
||||||
return self.execute_command(cmd)
|
return self.execute_command(cmd)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue