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

This commit is contained in:
Jeff Lowdermilk
2017-06-05 16:15:57 -07:00
parent 7bbc615b97
commit ac1ce7f1cd

View File

@@ -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
}