Skip to content

Commit bba9a8e

Browse files
verultsaikat-royc
authored andcommitted
Fix cluster list parsing for latest gcloud version
1 parent b9cc0eb commit bba9a8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/k8s-integration/cluster.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ func clusterUpGKE(gceZone, gceRegion string, numNodes int, imageType string, use
145145
return err
146146
}
147147

148-
out, err := exec.Command("gcloud", "container", "clusters", "list", locationArg, locationVal,
149-
"--filter", fmt.Sprintf("name=%s", *gkeTestClusterName)).CombinedOutput()
148+
out, err := exec.Command("gcloud", "container", "clusters", "list",
149+
locationArg, locationVal, "--verbosity", "none", "--filter",
150+
fmt.Sprintf("name=%s", *gkeTestClusterName)).CombinedOutput()
150151

151152
if err != nil {
152153
return fmt.Errorf("failed to check for previous test cluster: %v %s", err, out)

0 commit comments

Comments
 (0)