summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2016-08-31 10:29:41 -0500
committerGitHub <noreply@github.com>2016-08-31 10:29:41 -0500
commit3867cc71a68b177660a0d2fd5e0f516ef75b0d7f (patch)
tree2981a54e37d8ded37034ff2c0deb69b1b4ed2aec
parentb576e116f07c5a5bebb71298ff28efb11052864e (diff)
downloadansible-modules-extras-3867cc71a68b177660a0d2fd5e0f516ef75b0d7f.tar.gz
Make sure we don't catch rc=0 as a timeout (#2823)
-rw-r--r--commands/expect.py2
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'