Skip to content

Commit 535ee43

Browse files
committed
Fixed sonar findings
1 parent f1dbf07 commit 535ee43

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

doc/changes/changes_2.6.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 2.6.0 - 2025-12-10
1+
# 2.6.0 - 2025-12-11
22

33
## Summary
44

exasol/saas/client/api_access.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ def timestamp_name(project_short_tag: str | None = None) -> str:
6868
return candidate[: Limits.MAX_DATABASE_NAME_LENGTH]
6969

7070

71-
RETRY_PATTERN = re.compile("Operation.*not allowed.*cluster.*not.*in.*proper state")
72-
73-
7471
def indicates_retry(ex: BaseException) -> bool:
7572
"""
7673
When deleting a SaaS instance raises an UnexpectedStatus, then this
@@ -79,7 +76,7 @@ def indicates_retry(ex: BaseException) -> bool:
7976
return bool(
8077
isinstance(ex, UnexpectedStatus)
8178
and ex.status_code == 400
82-
and RETRY_PATTERN.search(ex.content.decode("utf-8"))
79+
and "cluster is not in a proper state" in ex.content.decode("utf-8")
8380
)
8481

8582

@@ -301,7 +298,7 @@ def delete_with_retry():
301298
except Exception as ex:
302299
if ignore_failures:
303300
LOG.error(
304-
f"Ignoring failure when deleting database with ID %s: %s",
301+
"Ignoring failure when deleting database with ID %s: %s",
305302
database_id,
306303
ex,
307304
)

0 commit comments

Comments
 (0)