Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 021a722

Browse files
dmiusDmitry
authored andcommitted
Default value added to aws_region
1 parent e007cd0 commit 021a722

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nancy_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ if [[ "$RUN_ON" == "aws" ]]; then
566566
exit 1
567567
fi
568568
if [[ -z ${AWS_REGION+x} ]]; then
569-
err "ERROR: AWS EC2 region not given."
570-
exit 1
569+
err "NOTICE: AWS EC2 region not given. Will used us-east-1."
570+
AWS_REGION='us-east-1'
571571
fi
572572
elif [[ "$RUN_ON" == "localhost" ]]; then
573573
if [[ ! -z ${AWS_KEYPAIR_NAME+x} ]] || [[ ! -z ${AWS_SSH_KEY_PATH+x} ]] ; then

tests/nancy_run_options_no_region.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PARAMS
1313

1414
output=$(${BASH_SOURCE%/*}/../nancy_run.sh $params 2>&1)
1515

16-
if [[ $output =~ "ERROR: AWS EC2 region not given." ]]; then
16+
if [[ $output =~ "NOTICE: AWS EC2 region not given. Will used us-east-1." ]]; then
1717
echo -e "\e[36mOK\e[39m"
1818
else
1919
>&2 echo -e "\e[31mFAILED\e[39m"

0 commit comments

Comments
 (0)