mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
log gcloud command error
This commit is contained in:
parent
be78d113b1
commit
c173296632
@ -66,6 +66,7 @@ func GetGroupNodes(group string) ([]string, error) {
|
|||||||
"list-instances", group, "--project="+TestContext.CloudConfig.ProjectID,
|
"list-instances", group, "--project="+TestContext.CloudConfig.ProjectID,
|
||||||
"--zone="+TestContext.CloudConfig.Zone).CombinedOutput()
|
"--zone="+TestContext.CloudConfig.Zone).CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Logf("Failed to get nodes in instance group: %v", string(output))
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
re := regexp.MustCompile(".*RUNNING")
|
re := regexp.MustCompile(".*RUNNING")
|
||||||
|
Loading…
Reference in New Issue
Block a user