Skip to content

Commit

Permalink
Adding CommandFailed exception for retry
Browse files Browse the repository at this point in the history
Signed-off-by: vavuthu <[email protected]>
  • Loading branch information
vavuthu committed Jan 29, 2024
1 parent ffde86d commit a0d3e59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocs_ci/ocs/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,10 @@ def wait_for_noobaa_health_ok(self, tries=60, delay=5):
Wait for Noobaa health to be OK
"""
return retry(
exceptions.NoobaaHealthException, tries=tries, delay=delay, backoff=1
(exceptions.NoobaaHealthException, exceptions.CommandFailed),
tries=tries,
delay=delay,
backoff=1,
)(self.noobaa_health_check)()

def mon_change_count(self, new_count):
Expand Down

0 comments on commit a0d3e59

Please sign in to comment.