From ac1ce7f1cd891790628671120f34445ccf6b2816 Mon Sep 17 00:00:00 2001 From: Jeff Lowdermilk Date: Mon, 5 Jun 2017 16:15:57 -0700 Subject: [PATCH] Don't parse human-readable output from gcloud in tests --- test/e2e/framework/google_compute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/google_compute.go b/test/e2e/framework/google_compute.go index 5cf336e26a7..726726b397a 100644 --- a/test/e2e/framework/google_compute.go +++ b/test/e2e/framework/google_compute.go @@ -48,7 +48,7 @@ func CreateGCEStaticIP(name string) (string, error) { for attempts := 0; attempts < 4; attempts++ { outputBytes, err = exec.Command("gcloud", "compute", "addresses", "create", name, "--project", TestContext.CloudConfig.ProjectID, - "--region", region, "-q").CombinedOutput() + "--region", region, "-q", "--format=yaml").CombinedOutput() if err == nil { break }