Actually delete LBaaS monitors after disassociating

Partially addresses issue #8352
This commit is contained in:
Angus Lees 2015-06-02 14:00:25 +10:00
parent 6491922562
commit 785a775777

View File

@ -691,8 +691,8 @@ func (lb *LoadBalancer) EnsureTCPLoadBalancerDeleted(name, region string) error
if poolExists {
for _, monId := range pool.MonitorIDs {
// TODO(#8352): Delete the monitor, don't just disassociate it.
pools.DisassociateMonitor(lb.network, pool.ID, monId)
monitors.Delete(monId)
}
pools.Delete(lb.network, pool.ID)
}