Check if INSTANCE_GROUPS is empty in detect_node_failures.

pull/564/head
Maciej Borsz 2018-12-18 11:59:11 +01:00
parent 8e879db938
commit 325511d0ab
1 changed files with 3 additions and 0 deletions

View File

@ -435,6 +435,9 @@ function detect_node_failures() {
fi
detect-node-names
if [ -z "$INSTANCE_GROUPS" ]; then
return
fi
for group in "${INSTANCE_GROUPS[@]}"; do
local creation_timestamp=$(gcloud compute instance-groups managed describe \
"${group}" \