Merge pull request #7249 from jfchevrette/implement-group-checking-if-state-present

Allow group module to handle check_mode properly when group.state=present and group already exists
pull/7649/head
James Cammarata 11 years ago
commit bdd9b4cac4

@ -121,7 +121,7 @@ class Group(object):
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…
Cancel
Save