Skip to content

Commit 1677fae

Browse files
Added kube exception to is_openshift_cluster
1 parent 8a5ea19 commit 1677fae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/codeflare_sdk/utils/generate_yaml.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ def is_openshift_cluster():
6262
return True
6363
else:
6464
return False
65-
except client.ApiException as e: # pragma: no cover
66-
print(f"Error detecting cluster type defaulting to Kubernetes: {e}")
67-
return False
65+
except Exception as e: # pragma: no cover
66+
return _kube_api_error_handling(e)
6867

6968

7069
def update_dashboard_route(route_item, cluster_name, namespace):

0 commit comments

Comments
 (0)