diff --git a/CICD/heat/heatcicdwrapper.sh b/CICD/heat/heatcicdwrapper.sh
index 9f9d9bb1378e1956c2f5d131687ec06b4336716b..429c2cd9924f981e593834643c65f4a4820b6f60 100644
--- a/CICD/heat/heatcicdwrapper.sh
+++ b/CICD/heat/heatcicdwrapper.sh
@@ -16,7 +16,7 @@ fi
 STACKNAME=$2
 
 
-if [[ "$STACKNAME" == *"$CICD"* ]]; then
+if [[ "$STACKNAME" == "$CICD"* ]]; then
   echo "CICD found in stackname. doing nothing"
 else
   STACKNAME="CICD"$STACKNAME