Skip to content

Commit

Permalink
0.24
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Osypenko <[email protected]>
  • Loading branch information
DanielOsypenko committed Jun 17, 2024
1 parent 2ddfd8f commit ba9942b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ocs_ci/deployment/hosted_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,12 @@ def get_kubeconfig_path(self, cluster_name):
Returns:
str: Path to the kubeconfig file
"""
if not self.kubeconfig_paths:
self.download_hosted_clusters_kubeconfig_files()
for kubeconfig_path in self.kubeconfig_paths:
if cluster_name in kubeconfig_path:
return kubeconfig_path
return None
return

def deploy_multiple_odf_clients(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7653,7 +7653,7 @@ def factory(
)
kubeconfig_path = hosted_clients_obj.get_kubeconfig_path(cluster_name)
log.info(f"Kubeconfig path: {kubeconfig_path}")
def_client_config_dict.get("RUN").update(
def_client_config_dict.setdefault("RUN", {}).update(
{"kubeconfig": kubeconfig_path}
)
cluster_config = Config()
Expand Down

0 comments on commit ba9942b

Please sign in to comment.