review comments
This commit is contained in:
parent
a14c202d60
commit
586b6fc3d7
|
@ -481,10 +481,9 @@ EOF
|
|||
num_zones=${#zones[@]}
|
||||
numNodesPerZone=$((additionalFullNodeCount / num_zones))
|
||||
numLeftOverNodes=$((additionalFullNodeCount % num_zones))
|
||||
count=0
|
||||
for zone in "${zones[@]}"; do
|
||||
count=$((count + 1))
|
||||
if [[ $count -eq $num_zones ]]; then
|
||||
for ((i=0; i < $num_zones; i++)); do
|
||||
zone=${zones[i]}
|
||||
if [[ $i -eq $((num_zones - 1)) ]]; then
|
||||
numNodesPerZone=$((numNodesPerZone + numLeftOverNodes))
|
||||
fi
|
||||
cloud_CreateInstances "$prefix" "$prefix-$zone-fullnode" "$numNodesPerZone" \
|
||||
|
|
Loading…
Reference in New Issue