1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #2511 from bcoca/user_checkmode_fix

user module check mode bug fix
This commit is contained in:
Michael DeHaan 2013-03-26 19:31:02 -07:00
commit 4552fa8592

View file

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