Merge "Failure status should be set on 0 rather than 1" into stable/train
This commit is contained in:
commit
1309c809a1
|
@ -59,7 +59,7 @@ def process_healthcheck_output(logfile):
|
||||||
|
|
||||||
ret_code, output = 0, []
|
ret_code, output = 0, []
|
||||||
for _, opt in data.items():
|
for _, opt in data.items():
|
||||||
if opt['healthy'] > 0 and ret_code != 2:
|
if opt['healthy'] < 1 and ret_code != 2:
|
||||||
ret_code = 2
|
ret_code = 2
|
||||||
output.append(opt)
|
output.append(opt)
|
||||||
return ret_code, output
|
return ret_code, output
|
||||||
|
|
Loading…
Reference in New Issue