copr-be: use resalloc_pool_id env variable for reaslloc-ibm-cloud-list-vms
This commit is contained in:
parent
a85ed11283
commit
c1af467ba0
2 changed files with 2 additions and 13 deletions
|
@ -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" \
|
||||
"$@"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue