Skip to content

Commit

Permalink
Cleanup unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
nbering committed May 26, 2019
1 parent 94006cd commit 96d1860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _execute_shell():
tf_workspace = [TERRAFORM_PATH, 'workspace', 'select', TERRAFORM_WS_NAME]
proc_ws = Popen(tf_workspace, cwd=TERRAFORM_DIR, stdout=PIPE,
stderr=PIPE, universal_newlines=True)
out_ws, err_ws = proc_ws.communicate()
_, err_ws = proc_ws.communicate()
if err_ws != '':
sys.stderr.write(str(err_ws)+'\n')
sys.exit(1)
Expand All @@ -247,7 +247,7 @@ def _execute_shell():
sys.stderr.write(str(err_cmd)+'\n')
sys.exit(1)
else:
return json.loads(out_cmd, encoding='utf-8')
return json.loads(out_cmd, encoding=encoding)


def _main():
Expand Down

0 comments on commit 96d1860

Please sign in to comment.