ci: sleep 1 before deleting secondary volume

api-3.0
Alexander 2023-12-28 14:05:36 +04:00
parent 91c22466b1
commit 4920434aec
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ steps:
# as of 2023-12-27 Hetzner ignores "name" query parameter (and others too)!!
- >
volume_id="$(jq <<<"$volumes_json" -re "(.volumes[] | select(.name == \"$volume_name\")).id")"
- sleep 1
- >
http -d --print=HBb --ignore-stdin DELETE https://api.hetzner.cloud/v1/volumes/$volume_id Authorization:"Bearer $PASSWORD"
when: