Gracefully handle receptorctl RuntimeError in health check

This commit is contained in:
Alan Rominger
2021-10-15 15:03:59 -04:00
committed by Shane McDonald
parent 77076dbd67
commit e54db3ce50
2 changed files with 15 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ def worker_info(node_name, work_type='ansible-runner'):
else:
error_list.append(details)
except ReceptorNodeNotFound as exc:
except (ReceptorNodeNotFound, RuntimeError) as exc:
error_list.append(str(exc))
# If we have a connection error, missing keys would be trivial consequence of that