File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,31 @@ storePortAndDeleteSecurityGroupWithSleepAndRetry() {
8181 done
8282}
8383
84+ treehousesConfigHas () {
85+ local keyName=$1
86+ local groupName=$2
87+
88+ if [ " $keyName " == " null" ] || [ " $groupName " == " null" ]; then
89+ return 1
90+ fi
91+
92+ return 0
93+ }
94+
8495function down() {
8596
8697 balloonName=$( setBalloonName " $1 " )
8798 keyName=$( getValueByAttribute " $balloonName " key)
8899 groupName=$( getValueByAttribute " $balloonName " groupName)
89100
101+ treehousesConfigHas " $keyName " " $groupName "
102+ checkResult=$?
103+
104+ if [ $checkResult -eq 1 ]; then
105+ echo " Treehouses config is corrupted, manual cleanup required"
106+ exit 1
107+ fi
108+
90109 detectIncompleteState " $balloonName " " $groupName " " $keyName "
91110 binaryState=$?
92111
You can’t perform that action at this time.
0 commit comments