Skip to content

Commit

Permalink
Merge branch 'customcert' into helmupdatefix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirireddy12 authored Feb 16, 2022
2 parents f96aad8 + 58a545a commit b8b5d00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/connectedk8s/azext_connectedk8s/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,6 @@ def update_agents(cmd, client, resource_group_name, cluster_name, https_proxy=""
telemetry.set_exception(exception='Unsupported OS', fault_type=consts.Unsupported_Fault_Type,
summary=f'{operating_system} is not supported yet')
raise ClientRequestError(f'The {operating_system} platform is not currently supported.')

user_values_location = os.path.expanduser(os.path.join('~', user_values_filepath_string))
existing_user_values = open(user_values_location, 'w+')
response_helm_values_get = Popen(cmd_helm_values, stdout=existing_user_values, stderr=PIPE)
Expand Down Expand Up @@ -939,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 b8b5d00

Please sign in to comment.