From 9af796e33c574d4d0614b0bdc610a3424d9cd471 Mon Sep 17 00:00:00 2001 From: MiguelNdeCarvalho Date: Thu, 14 Jul 2022 18:04:13 +0100 Subject: [PATCH 1/2] terrabutler: tf.py: Remove not used import --- terrabutler/tf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/terrabutler/tf.py b/terrabutler/tf.py index 113442c..365f0c7 100644 --- a/terrabutler/tf.py +++ b/terrabutler/tf.py @@ -1,4 +1,3 @@ -import os import signal import subprocess from colorama import Fore From 987210c73814a9c17473a6ceeec3921d122a0cf8 Mon Sep 17 00:00:00 2001 From: MiguelNdeCarvalho Date: Thu, 14 Jul 2022 18:04:46 +0100 Subject: [PATCH 2/2] terrabutler: tf.py: Fix arguments of destroy all sites --- terrabutler/tf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terrabutler/tf.py b/terrabutler/tf.py index 365f0c7..ba256be 100644 --- a/terrabutler/tf.py +++ b/terrabutler/tf.py @@ -119,7 +119,8 @@ def terraform_destroy_all_sites(): """ sites = list(reversed(get_settings()["sites"]["ordered"])) for site in sites: - terraform_command_runner("destroy", [], "var", site) + terraform_command_runner("destroy", site, options=["-auto-approve"], + needed_options="var") def terraform_apply_all_sites():