mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
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:
commit
7daa26e51d
@ -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[*]}"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user