Merge pull request #14839 from caesarxuchao/14084-fix

Ref #14084, Print output when error occurs in e2e test "in Services should be able to create a functioning external load balancer with user-provided load balancer ip"
pull/6/head
Brendan Burns 2015-09-30 17:11:59 -07:00
commit 95956d76ea
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ func createGCEStaticIP(name string) (string, error) {
name, "--project", testContext.CloudConfig.ProjectID,
"--region", "us-central1", "-q").CombinedOutput()
if err != nil {
glog.Errorf("Creating static IP with name:%s in project: %s", name, testContext.CloudConfig.ProjectID)
glog.Errorf("output: %s", output)
return "", err
}
glog.Errorf("Creating static IP with name:%s in project: %s", name, testContext.CloudConfig.ProjectID)