Merge pull request #2511 from bcoca/user_checkmode_fix

user module check mode bug fix
pull/2514/head
Michael DeHaan 12 years ago
commit 4552fa8592

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