Skip to content

Commit

Permalink
Merge pull request ansible#7249 from jfchevrette/implement-group-chec…
Browse files Browse the repository at this point in the history
…king-if-state-present

Allow group module to handle check_mode properly when group.state=present and group already exists
  • Loading branch information
jimi-c committed Jun 24, 2014
2 parents 5951f14 + 83d79f6 commit bdd9b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/system/group
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit bdd9b4c

Please sign in to comment.