From a1f6a967f7dac6d288b46321ac7d1b5a713a49cc Mon Sep 17 00:00:00 2001 From: Siri Teja Reddy Kasireddy Date: Mon, 21 Feb 2022 16:22:59 +0530 Subject: [PATCH] fix location variable --- src/connectedk8s/azext_connectedk8s/custom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/connectedk8s/azext_connectedk8s/custom.py b/src/connectedk8s/azext_connectedk8s/custom.py index 3c1d7242942..4fde18967f2 100644 --- a/src/connectedk8s/azext_connectedk8s/custom.py +++ b/src/connectedk8s/azext_connectedk8s/custom.py @@ -886,8 +886,7 @@ def update_agents(cmd, client, resource_group_name, cluster_name, https_proxy="" if kube_context: cmd_helm_values.extend(["--kube-context", kube_context]) - user_values_filepath_string = os.path.join(os.path.expanduser('~'), '.azure', 'userValues.txt') - user_values_location = os.path.expanduser(os.path.join('~', user_values_filepath_string)) + user_values_location = os.path.join(os.path.expanduser('~'), '.azure', 'userValues.txt') existing_user_values = open(user_values_location, 'w+') response_helm_values_get = Popen(cmd_helm_values, stdout=existing_user_values, stderr=PIPE) _, error_helm_get_values = response_helm_values_get.communicate()