Skip to content

Commit

Permalink
Invert conditions for space and org cleanup in autoscaler script
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Sep 2, 2024
1 parent dee5032 commit 431e7c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/autoscaler/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ function cleanup_apps(){
echo "No app to undeploy"
fi

if ! cf spaces | grep --quiet --regexp="^${AUTOSCALER_SPACE}$"; then
if cf spaces | grep --quiet --regexp="^${AUTOSCALER_SPACE}$"; then
cf delete-space -f "${AUTOSCALER_SPACE}"
fi

if ! cf orgs | grep --quiet --regexp="^${AUTOSCALER_ORG}$"; then
if cf orgs | grep --quiet --regexp="^${AUTOSCALER_ORG}$"; then
cf delete-org -f "${AUTOSCALER_ORG}"
fi
}
Expand Down

0 comments on commit 431e7c1

Please sign in to comment.