Merge pull request #24162 from jlowdermilk/fix-log-dump

Automatic merge from submit-queue

Fix log dump for new gcloud

`gcloud compute instance-groups managed list-instances` at CI has self-link for instance instead of just name. Fixes #24120
This commit is contained in:
k8s-merge-robot 2016-04-14 03:47:27 -07:00
commit 7daa26e51d

View File

@ -236,6 +236,9 @@ function detect-node-names {
"${NODE_INSTANCE_GROUP}" --zone "${ZONE}" --project "${PROJECT}" \
--format=yaml | grep instance: | cut -d ' ' -f 2))
# Strip path if return value is selflink
NODE_NAMES=($(for i in ${NODE_NAMES[@]}; do basename "$i"; done))
echo "NODE_NAMES=${NODE_NAMES[*]}"
}