1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Updating the other classes in the group module to match #7249

This commit is contained in:
James Cammarata 2014-06-24 12:28:43 -05:00
parent bdd9b4cac4
commit 98f8438236

View file

@ -206,7 +206,7 @@ class AIX(Group):
if len(cmd) == 1:
return (None, '', '')
if self.module.check_mode:
return (True, '', '')
return (0, '', '')
cmd.append(self.name)
return self.execute_command(cmd)
@ -245,7 +245,7 @@ class FreeBsdGroup(Group):
# modify the group if cmd will do anything
if cmd_len != len(cmd):
if self.module.check_mode:
return (True, '', '')
return (0, '', '')
return self.execute_command(cmd)
return (None, '', '')
@ -287,7 +287,7 @@ class OpenBsdGroup(Group):
if len(cmd) == 1:
return (None, '', '')
if self.module.check_mode:
return (True, '', '')
return (0, '', '')
cmd.append(self.name)
return self.execute_command(cmd)
@ -329,7 +329,7 @@ class NetBsdGroup(Group):
if len(cmd) == 1:
return (None, '', '')
if self.module.check_mode:
return (True, '', '')
return (0, '', '')
cmd.append(self.name)
return self.execute_command(cmd)