log gcloud command error

This commit is contained in:
Aleksandra Malinowska 2017-09-13 11:56:55 +02:00
parent be78d113b1
commit c173296632

View File

@ -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")