mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #88805 from aleksandra-malinowska/gce-multizone-tests
ignore gcloud warning in test framework
This commit is contained in:
commit
e5f1048945
@ -188,7 +188,7 @@ func (p *Provider) EnsureLoadBalancerResourcesDeleted(ip, portRange string) erro
|
|||||||
|
|
||||||
func getGCEZoneForGroup(group string) (string, error) {
|
func getGCEZoneForGroup(group string) (string, error) {
|
||||||
output, err := exec.Command("gcloud", "compute", "instance-groups", "managed", "list",
|
output, err := exec.Command("gcloud", "compute", "instance-groups", "managed", "list",
|
||||||
"--project="+framework.TestContext.CloudConfig.ProjectID, "--format=value(zone)", "--filter=name="+group).CombinedOutput()
|
"--project="+framework.TestContext.CloudConfig.ProjectID, "--format=value(zone)", "--filter=name="+group).Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("Failed to get zone for node group %s: %s", group, output)
|
return "", fmt.Errorf("Failed to get zone for node group %s: %s", group, output)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user