Skip to content
Snippets Groups Projects
Commit e0f522bf authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

making stackname prefixing more robust

parent c5ef012d
No related branches found
No related tags found
3 merge requests!297Cicd merge back,!284Cicd,!282CICD
...@@ -14,7 +14,15 @@ if [ "$#" -ne 2 ]; then ...@@ -14,7 +14,15 @@ if [ "$#" -ne 2 ]; then
fi fi
STACKNAME=$2 STACKNAME=$2
STACKNAME="CICD"$STACKNAME
if [[ "$STACKNAME" == *"$CICD"* ]]; then
echo "CICD found in stackname. doing nothing"
else
STACKNAME="CICD"$STACKNAME
fi
echo "[heatcicdwrapper] Prefixing Stackname with CICD. This is a safety feature because this script can also delete stacks" echo "[heatcicdwrapper] Prefixing Stackname with CICD. This is a safety feature because this script can also delete stacks"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment