Skip to content

Commit

Permalink
fix cluster_name from kubeconfig (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
chetna14manku authored Aug 6, 2024
1 parent 24edc2f commit 5ad90b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocp_addons_operators_cli/utils/operators_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_cluster_name_from_kubeconfig(kubeconfig, operator_name):
LOGGER.error(f"Operator: {operator_name} kubeconfig file contains more than one cluster.")
raise click.Abort()

return kubeconfig_clusters[0]["name"]
return kubeconfig_clusters[0]["name"].split(":")[0]


def get_operator_iib_from_iib_dict(iib_dict, operator_dict, job_name=None):
Expand Down

0 comments on commit 5ad90b1

Please sign in to comment.