Commit ac1ce7f1 authored by Jeff Lowdermilk's avatar Jeff Lowdermilk

Don't parse human-readable output from gcloud in tests

parent 7bbc615b
...@@ -48,7 +48,7 @@ func CreateGCEStaticIP(name string) (string, error) { ...@@ -48,7 +48,7 @@ func CreateGCEStaticIP(name string) (string, error) {
for attempts := 0; attempts < 4; attempts++ { for attempts := 0; attempts < 4; attempts++ {
outputBytes, err = exec.Command("gcloud", "compute", "addresses", "create", outputBytes, err = exec.Command("gcloud", "compute", "addresses", "create",
name, "--project", TestContext.CloudConfig.ProjectID, name, "--project", TestContext.CloudConfig.ProjectID,
"--region", region, "-q").CombinedOutput() "--region", region, "-q", "--format=yaml").CombinedOutput()
if err == nil { if err == nil {
break break
} }
......
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