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

Make sure we don't catch rc=0 as a timeout (#2823)

This commit is contained in:
Matt Martz 2016-08-31 10:29:41 -05:00 committed by Matt Clay
parent 3cb7e4bd0e
commit 91abacfca7

View file

@ -224,7 +224,7 @@ def main():
changed=True,
)
if rc:
if rc is not None:
module.exit_json(**ret)
else:
ret['msg'] = 'command exceeded timeout'