Skip to content

Commit 9b58012

Browse files
authored
Add PROTOCOL_ERROR_EXCEPTION_DICT to the default exceptions_dict in create() (#2581)
1 parent f27458a commit 9b58012

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ocp_resources/resource.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,10 @@ def wait_for_status(
10091009
raise
10101010

10111011
def create(
1012-
self, wait: bool = False, exceptions_dict: dict[type[Exception], list[str]] = DEFAULT_CLUSTER_RETRY_EXCEPTIONS
1012+
self,
1013+
wait: bool = False,
1014+
exceptions_dict: dict[type[Exception], list[str]] = DEFAULT_CLUSTER_RETRY_EXCEPTIONS
1015+
| PROTOCOL_ERROR_EXCEPTION_DICT,
10131016
) -> ResourceInstance | None:
10141017
"""
10151018
Create resource.

0 commit comments

Comments
 (0)