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

modifications needed.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
reviewable/pr18780/r1
Brian Coca 12 years ago
parent 43cf3b0768
commit c3f122fb6a

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