mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Log HNS policylist removal failures
Signed-off-by: Trapier Marshall <tmarshall@mirantis.com>
This commit is contained in:
parent
61404de7df
commit
556cb3ae81
1 changed files with 6 additions and 2 deletions
|
|
@ -131,12 +131,16 @@ func (n *network) rmLBBackend(ip net.IP, lb *loadBalancer, rmService bool, fullR
|
||||||
|
|
||||||
if policyLists, ok := lbPolicylistMap[lb]; ok {
|
if policyLists, ok := lbPolicylistMap[lb]; ok {
|
||||||
if policyLists.ilb != nil {
|
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
|
policyLists.ilb = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if policyLists.elb != 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
|
policyLists.elb = nil
|
||||||
}
|
}
|
||||||
delete(lbPolicylistMap, lb)
|
delete(lbPolicylistMap, lb)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue