Commit 83bff8df authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #51471 from ixdy/gcloud-compute-managed-list

Automatic merge from submit-queue (batch tested with PRs 51471, 50561, 50435, 51473, 51436) Fix `gcloud compute instance-groups managed list` call **What this PR does / why we need it**: gcloud 168.0.0 makes the `gcloud compute instance-groups managed list --format='value(instanceGroup)'` call return a URL instead of just the name, which is causing `list-instances` to fail. Switching to `--format='value(name)'` seems to restore the old behavior. x-ref #49673 **Release note**: ```release-note NONE ``` /cc @wojtek-t @mwielgus @shyamjvs @jiayingz @mindprince
parents 04b3ab9a 0d105521
......@@ -336,7 +336,7 @@ function detect-node-names() {
INSTANCE_GROUPS+=($(gcloud compute instance-groups managed list \
--zones "${ZONE}" --project "${PROJECT}" \
--regexp "${NODE_INSTANCE_PREFIX}-.+" \
--format='value(instanceGroup)' || true))
--format='value(name)' || true))
NODE_NAMES=()
if [[ -n "${INSTANCE_GROUPS[@]:-}" ]]; then
for group in "${INSTANCE_GROUPS[@]}"; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment