|
@@ -131,12 +131,16 @@ func (n *network) rmLBBackend(ip net.IP, lb *loadBalancer, rmService bool, fullR
|
|
|
|
|
|
if policyLists, ok := lbPolicylistMap[lb]; ok {
|
|
|
if policyLists.ilb != nil {
|
|
|
- policyLists.ilb.Delete()
|
|
|
+ if _, err := policyLists.ilb.Delete(); err != nil {
|
|
|
+ logrus.Errorf("Failed to remove HNS ILB policylist %s: %s", policyLists.ilb.ID, err)
|
|
|
+ }
|
|
|
policyLists.ilb = nil
|
|
|
}
|
|
|
|
|
|
if policyLists.elb != nil {
|
|
|
- policyLists.elb.Delete()
|
|
|
+ if _, err := policyLists.elb.Delete(); err != nil {
|
|
|
+ logrus.Errorf("Failed to remove HNS ELB policylist %s: %s", policyLists.elb.ID, err)
|
|
|
+ }
|
|
|
policyLists.elb = nil
|
|
|
}
|
|
|
delete(lbPolicylistMap, lb)
|