copr-be: use resalloc_pool_id env variable for reaslloc-ibm-cloud-list-vms

This commit is contained in:
Jiri Kyjovsky 2023-10-20 15:33:47 +02:00
parent a85ed11283
commit c1af467ba0
2 changed files with 2 additions and 13 deletions

View file

@ -1,16 +1,5 @@
#! /bin/bash
case $RESALLOC_NAME in
*tokyo*)
zone=jp-tok
;;
*)
echo "Can't decide what location to assign from: $RESALLOC_NAME"
exit 1
;;
esac
exec resalloc-ibm-cloud-list-deleting-vms \
--token-file "{{ ibmcloud_token_file }}" \
--zone "$zone" \
"$@"

View file

@ -1,11 +1,11 @@
#! /bin/bash
case $RESALLOC_NAME in
case $RESALLOC_POOL_ID in
*tokyo*)
zone=jp-tok
;;
*)
echo "Can't decide what location to assign from: $RESALLOC_NAME"
echo "Can't decide what location to assign from: $RESALLOC_POOL_ID"
exit 1
;;
esac