Failure status should be set on 0 rather than 1

This fixes a bug on train branch for the patch
https://review.opendev.org/#/c/758447/

This does not affect any ussuri or master

Change-Id: Ia2b99590776ff2be9248d5eaddebd1719c142406
This commit is contained in:
pleimer 2020-10-29 16:29:36 -04:00
parent 37cafea0b3
commit 1c97de9a67
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def process_healthcheck_output(logfile):
ret_code, output = 0, []
for _, opt in data.items():
if opt['healthy'] > 0 and ret_code != 2:
if opt['healthy'] < 1 and ret_code != 2:
ret_code = 2
output.append(opt)
return ret_code, output