Skip to content

Commit

Permalink
AL-5682: Improve logging of terraform start env step
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwaizer committed Jan 21, 2025
1 parent 0f3de68 commit e035c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alts/worker/runners/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def start_env(self):
cmd_args = ['apply', '--auto-approve', '-no-color']
if self.TF_VARIABLES_FILE:
cmd_args.extend(['--var-file', self.TF_VARIABLES_FILE])
return local['terraform'].with_cwd(self._work_dir).run(
return local['terraform'].with_env(TF_LOG='TRACE').with_cwd(self._work_dir).run(
args=cmd_args,
retcode=None,
timeout=CONFIG.provision_timeout,
Expand Down Expand Up @@ -1711,7 +1711,7 @@ def start_env(self):
# VM gets its IP address only after deploy.
# To extract it, the `vm_ip` output should be defined
# in Terraform main file.
ip_exit_code, ip_stdout, ip_stderr = local['terraform'].with_cwd(
ip_exit_code, ip_stdout, ip_stderr = local['terraform'].with_env(TF_LOG='TRACE').with_cwd(
self._work_dir).run(
args=('output', '-raw', '-no-color', 'vm_ip'),
retcode=None,
Expand Down

0 comments on commit e035c08

Please sign in to comment.