mirror of
https://github.com/status-im/infra-faucet.git
synced 2025-02-23 16:18:33 +00:00
ansible/terraform.py: drop deprecated encoding argument
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
edb26d3c03
commit
65c2e04fb1
@ -383,7 +383,6 @@ class AnsibleGroup(object):
|
|||||||
|
|
||||||
|
|
||||||
def _execute_shell():
|
def _execute_shell():
|
||||||
encoding = 'utf-8'
|
|
||||||
tf_workspace = [TERRAFORM_PATH, 'workspace', 'select', TERRAFORM_WS_NAME]
|
tf_workspace = [TERRAFORM_PATH, 'workspace', 'select', TERRAFORM_WS_NAME]
|
||||||
proc_ws = Popen(tf_workspace, cwd=TERRAFORM_DIR, stdout=PIPE,
|
proc_ws = Popen(tf_workspace, cwd=TERRAFORM_DIR, stdout=PIPE,
|
||||||
stderr=PIPE, universal_newlines=True)
|
stderr=PIPE, universal_newlines=True)
|
||||||
@ -400,7 +399,7 @@ def _execute_shell():
|
|||||||
sys.stderr.write(str(err_cmd)+'\n')
|
sys.stderr.write(str(err_cmd)+'\n')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
return json.loads(out_cmd, encoding=encoding)
|
return json.loads(out_cmd)
|
||||||
|
|
||||||
|
|
||||||
def _backup_tf(tfstate):
|
def _backup_tf(tfstate):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user