mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Don't parse human-readable output from gcloud in tests
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user