We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 74857d2 + 1219340 commit ee32ba7Copy full SHA for ee32ba7
1 file changed
contrib/digitalocean/provision-do-cluster.sh
@@ -7,7 +7,7 @@ set -e
7
8
listcontains() {
9
for i in $1; do
10
- [[ $i = $2 ]] && echo $i && return 0
+ [[ $i = $2 ]] && return 0
11
done
12
return 1
13
}
@@ -33,7 +33,7 @@ if [ -z "$DEIS_NUM_INSTANCES" ]; then
33
fi
34
35
regions_with_private_networking=(4 5 6 7)
36
-if ! listcontains "$regions_with_private_networking" "$2";
+if ! listcontains "$regions_with_private_networking" "$1";
37
then
38
echo_red "Invalid region. Please supply a region with private networking support."
39
echo_red "Valid regions are:"
0 commit comments