Skip to content

Commit

Permalink
Terraform output shown in logs as a single string without new lines.
Browse files Browse the repository at this point in the history
Print the terraform output to log.info which print new lines and its clear to read
  • Loading branch information
bkopilov committed Jan 30, 2025
1 parent e0c0834 commit 251a27a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/assisted_test_infra/test_infra/tools/terraform_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def apply(
return_value, output, err = self.tf.apply(
no_color=IsFlagged, refresh=refresh, input=False, skip_plan=True, capture_output=capture_output
)
# print terraform output line by line without \n
if output and type(output) is str:
log.info(output)

if return_value == 0:
return

Expand Down

0 comments on commit 251a27a

Please sign in to comment.