Skip to content

Commit ca7fd1d

Browse files
committed
CI: Clean up instances in BUILD state, list by ID
1 parent bf7649e commit ca7fd1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/stackhpc-ci-cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
run: |
4141
result=0
4242
changes_before=$(date -Imin -d -3hours)
43-
for status in ACTIVE ERROR SHUTOFF; do
44-
for instance in $(openstack server list --tags skc-ci-aio --os-compute-api-version 2.66 --format value --column Name --changes-before $changes_before --status $status); do
43+
for status in ACTIVE BUILD ERROR SHUTOFF; do
44+
for instance in $(openstack server list --tags skc-ci-aio --os-compute-api-version 2.66 --format value --column ID --changes-before $changes_before --status $status); do
4545
echo "Cleaning up $status instance $instance"
4646
openstack server show $instance
4747
if ! openstack server delete $instance; then

0 commit comments

Comments
 (0)