From 65c2e04fb1daf4503fed72ff589c4f98bb753215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 4 Feb 2021 22:29:46 +0100 Subject: [PATCH] ansible/terraform.py: drop deprecated encoding argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ansible/terraform.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/terraform.py b/ansible/terraform.py index 6fc3759..c05ad8c 100755 --- a/ansible/terraform.py +++ b/ansible/terraform.py @@ -383,7 +383,6 @@ class AnsibleGroup(object): def _execute_shell(): - encoding = 'utf-8' tf_workspace = [TERRAFORM_PATH, 'workspace', 'select', TERRAFORM_WS_NAME] proc_ws = Popen(tf_workspace, cwd=TERRAFORM_DIR, stdout=PIPE, stderr=PIPE, universal_newlines=True) @@ -400,7 +399,7 @@ def _execute_shell(): sys.stderr.write(str(err_cmd)+'\n') sys.exit(1) else: - return json.loads(out_cmd, encoding=encoding) + return json.loads(out_cmd) def _backup_tf(tfstate):