ansible/terraform.py: drop deprecated encoding argument

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-02-04 22:29:46 +01:00
parent edb26d3c03
commit 65c2e04fb1
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -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):