Skip to content

Commit c9b2640

Browse files
Add PROTOCOL_ERROR_EXCEPTION_DICT to the default exceptions_dict in create() (#2581) (#2595)
Co-authored-by: Ahmad Hafe <[email protected]>
1 parent 4984564 commit c9b2640

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
@@ -1005,7 +1005,10 @@ def wait_for_status(
10051005
raise
10061006

10071007
def create(
1008-
self, wait: bool = False, exceptions_dict: dict[type[Exception], list[str]] = DEFAULT_CLUSTER_RETRY_EXCEPTIONS
1008+
self,
1009+
wait: bool = False,
1010+
exceptions_dict: dict[type[Exception], list[str]] = DEFAULT_CLUSTER_RETRY_EXCEPTIONS
1011+
| PROTOCOL_ERROR_EXCEPTION_DICT,
10091012
) -> ResourceInstance | None:
10101013
"""
10111014
Create resource.

0 commit comments

Comments
 (0)