From 4987314b3174aa77c4c737577594dc2b4e252c55 Mon Sep 17 00:00:00 2001 From: Zihong Zheng Date: Tue, 24 Oct 2017 20:01:50 -0700 Subject: [PATCH] Fix nil pointer panic in service LB e2e tests --- test/e2e/framework/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 92ccc7f2892..a0efef4e3bd 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -4860,7 +4860,7 @@ func CleanupGCEResources(c clientset.Interface, loadBalancerName, zone string) ( if hc != nil { hcNames = append(hcNames, hc.Name) } - if err := gceCloud.DeleteExternalTargetPoolAndChecks(nil, loadBalancerName, region, clusterID, hcNames...); err != nil && + if err := gceCloud.DeleteExternalTargetPoolAndChecks(&v1.Service{}, loadBalancerName, region, clusterID, hcNames...); err != nil && !IsGoogleAPIHTTPErrorCode(err, http.StatusNotFound) { retErr = fmt.Errorf("%v\n%v", retErr, err) }