Merge pull request #93119 from dcbw/e2e-ingress-misisng-return

test/e2e/ingress: add missing return to fix panics on !GCE
This commit is contained in:
Kubernetes Prow Robot 2020-07-18 13:58:49 -07:00 committed by GitHub
commit a789d56b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -623,10 +623,10 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
}
if jig.Ingress == nil {
ginkgo.By("No ingress created, no cleanup necessary")
} else {
ginkgo.By("Deleting ingress")
jig.TryDeleteIngress()
return
}
ginkgo.By("Deleting ingress")
jig.TryDeleteIngress()
ginkgo.By("Cleaning up cloud resources")
err := gceController.CleanupIngressController()