Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Fix #273
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Mar 8, 2017
1 parent a7ee46a commit 60abb03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contextualization/ctxt_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ def wait_thread(thread_data, output=None):
"""
thread, result = thread_data
thread.join()
_, (return_code, hosts_with_errors), _ = result.get()
try:
_, (return_code, hosts_with_errors), _ = result.get(False)
except:
CtxtAgent.logger.exception('Error getting ansible results.')
return_code = -1
hosts_with_errors = []

if output:
if return_code == 0:
Expand Down

0 comments on commit 60abb03

Please sign in to comment.