Merge pull request #52413 from aleksandra-malinowska/autoscaling-tests-extra-logs-2

Automatic merge from submit-queue

Add logging gcloud command error in e2e tests

This adds extra log line to help with debugging GKE tests.
pull/6/head
Kubernetes Submit Queue 2017-09-13 06:58:52 -07:00 committed by GitHub
commit 5af069b727
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ func GetGroupNodes(group string) ([]string, error) {
"list-instances", group, "--project="+TestContext.CloudConfig.ProjectID,
"--zone="+TestContext.CloudConfig.Zone).CombinedOutput()
if err != nil {
Logf("Failed to get nodes in instance group: %v", string(output))
return nil, err
}
re := regexp.MustCompile(".*RUNNING")