Skip to content

Commit

Permalink
Merge pull request #9 from sirireddy12/helmupdatefix
Browse files Browse the repository at this point in the history
nit
  • Loading branch information
sirireddy12 authored Feb 16, 2022
2 parents 3e42bb3 + e0d6b31 commit b5b2730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connectedk8s/azext_connectedk8s/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def update_agents(cmd, client, resource_group_name, cluster_name, https_proxy=""
telemetry.set_exception(exception=error_helm_get_values.decode("ascii"), fault_type=consts.Get_Helm_Values_Failed,
summary='Error while doing helm get values azure-arc')
raise CLIInternalError(str.format(consts.Update_Agent_Failure, error_helm_get_values.decode("ascii")))

cmd_helm_upgrade = [helm_client_location, "upgrade", "azure-arc", chart_path, "--namespace", release_namespace,
"-f",
user_values_location, "--wait", "--output", "json"]
Expand Down Expand Up @@ -938,7 +938,7 @@ def update_agents(cmd, client, resource_group_name, cluster_name, https_proxy=""
telemetry.set_exception(exception=error_helm_upgrade.decode("ascii"), fault_type=consts.Install_HelmRelease_Fault_Type,
summary='Unable to install helm release')
try:
os.remove(user_values_location)
os.remove(user_values_location)
except OSError:
pass
raise CLIInternalError(str.format(consts.Update_Agent_Failure, error_helm_upgrade.decode("ascii")))
Expand Down

0 comments on commit b5b2730

Please sign in to comment.