Skip to content

Commit

Permalink
Merge pull request deis#1683 from nathansamson/dofix
Browse files Browse the repository at this point in the history
feat(contrib): Blacklist DigitalOcean regions.
  • Loading branch information
carmstrong committed Aug 25, 2014
2 parents 1869a10 + c1c1017 commit 9ba0107
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions contrib/digitalocean/provision-do-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@ if [ -z "$DEIS_NUM_INSTANCES" ]; then
DEIS_NUM_INSTANCES=3
fi

regions_with_private_networking="4 5 6 7"
if ! listcontains "$regions_with_private_networking" "$1";
regions_without_private_networking="1 2 3"
if listcontains "$regions_without_private_networking" "$1";
then
echo_red "Invalid region. Please supply a region with private networking support."
echo_red "Valid regions are:"
echo_red "4: New York 2"
echo_red "5: Amsterdam 2"
echo_red "6: Singapore 1"
echo_red "7: London 1"
tugboat regions | grep -v "id: [$regions_without_private_networking])"
exit 1
fi

Expand Down

0 comments on commit 9ba0107

Please sign in to comment.