properly handle import errors in the isolated capacity healthcheck

if the awx_capacity module runs on an isolated node with missing
libraries (i.e., psutil) or bad permissions, then the runner status will
be "failed"

in this scenario, we *still* want to react by recording a capacity=0
This commit is contained in:
Ryan Petrello
2020-01-31 10:17:20 -05:00
parent b611164422
commit 326ed22efe

View File

@@ -370,7 +370,6 @@ class IsolatedManager(object):
private_data_dir private_data_dir
) )
if runner_obj.status == 'successful':
for instance in instance_qs: for instance in instance_qs:
task_result = {} task_result = {}
try: try: