diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-06-06 11:59:12 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2023-06-06 12:15:38 +0000 |
commit | 2edbc58d31debd0efab5e44cabab18d342ba0201 (patch) | |
tree | f09a26c0288d055e03f4b6b78b6b4bad176fcef2 | |
parent | 120b5c0f3035985170ee27c001c29766c050684f (diff) |
fix(core): Trap for AWS
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I14975b21e7f480c3bca5ba6a04514008af219039
(cherry picked from commit ab30e2e98dafee7b86f449a3dd50b55b68f1ddc3)
-rw-r--r-- | resources/libraries/bash/function/common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh index d768e9b66c..44a897ed2b 100644 --- a/resources/libraries/bash/function/common.sh +++ b/resources/libraries/bash/function/common.sh @@ -656,7 +656,7 @@ function prepare_topology () { export TF_VAR_testbed_name="${TEST_CODE}" TERRAFORM_MODULE_DIR="terraform-aws-${NODENESS}-${FLAVOR}-c5n" terraform_init || die "Failed to call terraform init." - trap 'terraform_destroy' ERR || { + trap "terraform_destroy" ERR EXIT || { die "Trap attempt failed, please cleanup manually. Aborting!" } terraform_apply || die "Failed to call terraform apply." |