Skip to content

Commit

Permalink
refresh with any error (#8915)
Browse files Browse the repository at this point in the history
Signed-off-by: fbalak <[email protected]>
  • Loading branch information
fbalak authored Nov 27, 2023
1 parent 938cce5 commit a76639e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocs_ci/utility/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def get(self, resource, payload=None, timeout=300):
},
):
response = sample_response
if response.status_code == 503:
if not response.ok:
logger.warning(f"There was an error in response: {response.text}")
logger.warning("Refreshing connection")
self.refresh_connection()
Expand Down

0 comments on commit a76639e

Please sign in to comment.