1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-28 19:54:55 +03:00

MCOL-1846 - change the getRegion command

This commit is contained in:
david hill
2018-11-05 10:25:59 -06:00
parent dc9e3c0ee8
commit 334a0d598a

View File

@@ -102,7 +102,7 @@ instance=""
AWSCLI="aws ec2 " AWSCLI="aws ec2 "
getRegion() { getRegion() {
Region=`curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document/region | grep region | cut -d':' -f2 | sed 's/\"//g' | sed 's/\,//g' | sed -e 's/^[ \t]*//'` Region=`curl --fail --silent /dev/null http://169.254.169.254/latest/dynamic/instance-identity/document | grep region | cut -d':' -f2 | sed 's/\"//g' | sed 's/\,//g' | sed -e 's/^[ \t]*//'`
echo $Region echo $Region
return return