set -o errexit
set -o nounset
+# proceed only if the deployment is done on openstack
+if [[ $DEPLOY_TYPE != "cloud" ]]; then
+ echo "-------------------------------------------------------------------------"
+ echo "Info: It is not an OpenStack deployment so nothing to delete!"
+ echo "-------------------------------------------------------------------------"
+ exit 0
+fi
+
if [[ "$DELETE_STACK" != "yes" ]]; then
echo "-------------------------------------------------------------------------"
echo "Info: Stack will not be deleted upon the completion of the job!"