Skip to content

Commit 4a1efd6

Browse files
committed
Add 'no-color' option to TF commands
1 parent 9d7bae2 commit 4a1efd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

handle_terraform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def perform_scaling(config):
124124
terraform = get_terraform(config)
125125
terra_path = config.get(CONFIG_PATH)
126126

127-
shell_command = "terraform apply --auto-approve" + LOG_SUFFIX
127+
shell_command = "terraform apply -auto-approve -no-color" + LOG_SUFFIX
128128
command = ["sh", "-c", shell_command]
129129

130130
exit_code, out = terraform.exec_run(command, workdir=terra_path)
@@ -230,4 +230,4 @@ def _drop_nodes_by_indices(node_name, indices):
230230
for index in indices:
231231
node_variables[node_name].sort()
232232
node_variables[node_name].pop(index)
233-
_write_vars_file(node_variables)
233+
_write_vars_file(node_variables)

0 commit comments

Comments
 (0)