diff options
author | Matt Martz <matt@sivel.net> | 2016-08-31 10:29:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-31 10:29:41 -0500 |
commit | 3867cc71a68b177660a0d2fd5e0f516ef75b0d7f (patch) | |
tree | 2981a54e37d8ded37034ff2c0deb69b1b4ed2aec | |
parent | b576e116f07c5a5bebb71298ff28efb11052864e (diff) | |
download | ansible-modules-extras-3867cc71a68b177660a0d2fd5e0f516ef75b0d7f.tar.gz |
Make sure we don't catch rc=0 as a timeout (#2823)
-rw-r--r-- | commands/expect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/expect.py b/commands/expect.py index 4b5e5e8d..a3d1b32d 100644 --- a/commands/expect.py +++ b/commands/expect.py @@ -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' |