Commit 5ad3c060 by Brian Coca

now check moded returnes 'changed' instead of failure when there are

modifications needed.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
parent 868af1a8
......@@ -367,7 +367,7 @@ class User(object):
if len(cmd) == 1:
return (None, '', '')
elif 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