make all the nodes have a pretty seq id (#1159)

This commit is contained in:
Rob Walker 2018-09-08 14:18:18 +09:00 committed by GitHub
parent e8206cb2d4
commit 96bfd9478b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ gcloud_CreateInstances() {
if [[ $numNodes = 1 ]]; then
nodes=("$namePrefix")
else
read -ra nodes <<<$(seq -f "${namePrefix}%g" 1 "$numNodes")
read -ra nodes <<<$(seq -f "${namePrefix}%0${#numNodes}g" 1 "$numNodes")
fi
declare -a args