Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
fbab829
)
fix(core): Trap for AWS
01/39001/1
author
pmikus
<peter.mikus@protonmail.ch>
Tue, 6 Jun 2023 11:59:12 +0000
(11:59 +0000)
committer
pmikus
<peter.mikus@protonmail.ch>
Tue, 6 Jun 2023 11:59:12 +0000
(11:59 +0000)
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I14975b21e7f480c3bca5ba6a04514008af219039
resources/libraries/bash/function/common.sh
patch
|
blob
|
history
diff --git
a/resources/libraries/bash/function/common.sh
b/resources/libraries/bash/function/common.sh
index
d768e9b
..
44a897e
100644
(file)
--- 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."