aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-06-06 11:59:12 +0000
committerpmikus <peter.mikus@protonmail.ch>2023-06-06 11:59:12 +0000
commitab30e2e98dafee7b86f449a3dd50b55b68f1ddc3 (patch)
treefad816f858a37be485f1d3d133dca3e88bf4177b /resources
parentfbab829993ab88325def28029ea627a1613c09de (diff)
fix(core): Trap for AWS
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I14975b21e7f480c3bca5ba6a04514008af219039
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/bash/function/common.sh2
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."