Fix gce.sh info (#7054)

automerge
This commit is contained in:
Justin Starry 2019-11-19 20:49:25 -05:00 committed by Grimes
parent 7151b92239
commit 95c137158f
1 changed files with 49 additions and 41 deletions

View File

@ -891,6 +891,7 @@ info)
fi
nodeType=bootstrap-leader
if [[ ${#validatorIpList[@]} -gt 0 ]]; then
for i in $(seq 0 $(( ${#validatorIpList[@]} - 1)) ); do
ipAddress=${validatorIpList[$i]}
ipAddressPrivate=${validatorIpListPrivate[$i]}
@ -902,7 +903,9 @@ info)
fi
nodeType=validator
done
fi
if [[ ${#clientIpList[@]} -gt 0 ]]; then
for i in $(seq 0 $(( ${#clientIpList[@]} - 1)) ); do
ipAddress=${clientIpList[$i]}
ipAddressPrivate=${clientIpListPrivate[$i]}
@ -913,7 +916,9 @@ info)
printNode client "$ipAddress" "$ipAddressPrivate" "$zone"
fi
done
fi
if [[ ${#blockstreamerIpList[@]} -gt 0 ]]; then
for i in $(seq 0 $(( ${#blockstreamerIpList[@]} - 1)) ); do
ipAddress=${blockstreamerIpList[$i]}
ipAddressPrivate=${blockstreamerIpListPrivate[$i]}
@ -924,7 +929,9 @@ info)
printNode blockstreamer "$ipAddress" "$ipAddressPrivate" "$zone"
fi
done
fi
if [[ ${#archiverIpList[@]} -gt 0 ]]; then
for i in $(seq 0 $(( ${#archiverIpList[@]} - 1)) ); do
ipAddress=${archiverIpList[$i]}
ipAddressPrivate=${archiverIpListPrivate[$i]}
@ -935,6 +942,7 @@ info)
printNode archiver "$ipAddress" "$ipAddressPrivate" "$zone"
fi
done
fi
;;
status)
cloud_StatusAll