diff --git a/doozer/doozerlib/cli/images_health.py b/doozer/doozerlib/cli/images_health.py index d92e4782f..b2233e76a 100644 --- a/doozer/doozerlib/cli/images_health.py +++ b/doozer/doozerlib/cli/images_health.py @@ -100,8 +100,8 @@ async def get_concerns(self, image_meta): msg = (f'Latest attempt {self.url_text(latest_attempt_task_url, "failed")} ' f'({self.url_text(latest_attempt_build_url, "jenkins job")}); ') - # The latest attempt was a failure - if latest_success_idx == -1: + # The last success is greater then the last attempt + if latest_success_idx > 1: # No success record was found msg += f'Failing for at least the last {len(builds)} attempts / {oldest_attempt_bi_dt}' else: