Change-Id: Id7da06b3d91b4b60b6e5f5b477bcb4b716f65324
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
# Search for stacks that are not in use by either releng or sandbox silos and
# delete them.
for STACK_NAME in "${OS_STACKS[@]}"; do
# Search for stacks that are not in use by either releng or sandbox silos and
# delete them.
for STACK_NAME in "${OS_STACKS[@]}"; do
+ echo "Deleting stack $STACK_NAME"
STACK_STATUS=$(openstack stack show -f value -c "stack_status" "$STACK_NAME")
if [[ "${ACTIVE_BUILDS[*]}" =~ $STACK_NAME ]]; then
# No need to delete stacks if there exists an active build for them
STACK_STATUS=$(openstack stack show -f value -c "stack_status" "$STACK_NAME")
if [[ "${ACTIVE_BUILDS[*]}" =~ $STACK_NAME ]]; then
# No need to delete stacks if there exists an active build for them