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

modifications needed.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
pull/2511/head
Brian Coca 12 years ago
parent 868af1a892
commit 5ad3c0603d

@ -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)

Loading…
Cancel
Save