This repository was archived by the owner on Aug 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,7 @@ function check_cli_parameters() {
387
387
([[ ! -z ${COMMANDS_AFTER_CONTAINER_INIT+x} ]] && [[ -z $COMMANDS_AFTER_CONTAINER_INIT ]]) && unset -v COMMANDS_AFTER_CONTAINER_INIT
388
388
([[ ! -z ${SQL_BEFORE_DB_RESTORE+x} ]] && [[ -z $SQL_BEFORE_DB_RESTORE ]]) && unset -v SQL_BEFORE_DB_RESTORE
389
389
([[ ! -z ${SQL_AFTER_DB_RESTORE+x} ]] && [[ -z $SQL_AFTER_DB_RESTORE ]]) && unset -v SQL_AFTER_DB_RESTORE
390
+ ([[ ! -z ${AWS_ZONE+x} ]] && [[ -z $AWS_ZONE ]]) && unset -v AWS_ZONE
390
391
# ## CLI parameters checks ###
391
392
if [[ " $RUN_ON " == " aws" ]]; then
392
393
if [ ! -z ${CONTAINER_ID+x} ]; then
@@ -408,12 +409,7 @@ function check_cli_parameters() {
408
409
AWS_REGION=' us-east-1'
409
410
fi
410
411
if [[ -z ${AWS_ZONE+x} ]]; then
411
- err " NOTICE: AWS EC2 zone not given. Will determined by min price."
412
- else
413
- if [[ -z $AWS_ZONE ]]; then
414
- err " NOTICE: AWS EC2 zone not given. Will determined by min price."
415
- unset -v AWS_ZONE
416
- fi
412
+ err " NOTICE: AWS EC2 zone not given. Will be determined by min price."
417
413
fi
418
414
if [[ -z ${AWS_BLOCK_DURATION+x} ]]; then
419
415
err " NOTICE: Container live time duration is not given. Will use 60 minutes."
You can’t perform that action at this time.
0 commit comments