Commit bdd9b4ca by James Cammarata

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
parents 5951f14d 83d79f62
......@@ -121,7 +121,7 @@ class Group(object):
if len(cmd) == 1:
return (None, '', '')
if self.module.check_mode:
return (True, '', '')
return (0, '', '')
cmd.append(self.name)
return self.execute_command(cmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment