From f249f49543adb1615e59efa24dfa4cbcefc46194 Mon Sep 17 00:00:00 2001 From: nikhiljindal Date: Tue, 12 Dec 2017 23:49:34 -0800 Subject: [PATCH] Fixing a bug in deleting SSL certs --- app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go b/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go index 58860d424..c4bc3cc49 100644 --- a/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go +++ b/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go @@ -224,14 +224,14 @@ func (l *LoadBalancerSyncer) DeleteLoadBalancer(ing *v1beta1.Ingress) error { // Aggregate errors and return all at the end. err = multierror.Append(err, frErr) } - if scErr := l.scs.DeleteSSLCert(); scErr != nil { - // Aggregate errors and return all at the end. - err = multierror.Append(err, scErr) - } if tpErr := l.tps.DeleteTargetProxies(); tpErr != nil { // Aggregate errors and return all at the end. err = multierror.Append(err, tpErr) } + if scErr := l.scs.DeleteSSLCert(); scErr != nil { + // Aggregate errors and return all at the end. + err = multierror.Append(err, scErr) + } if umErr := l.ums.DeleteURLMap(); umErr != nil { // Aggregate errors and return all at the end. err = multierror.Append(err, umErr)