Merge "Switch except statements order"

This commit is contained in:
Zuul 2019-03-05 12:42:28 +00:00 committed by Gerrit Code Review
commit a0197124c0
1 changed files with 2 additions and 2 deletions

View File

@ -102,11 +102,11 @@ class LBaaSv2Driver(base.LBaaSDriver):
self._wait_for_deletion(loadbalancer, _ACTIVATION_TIMEOUT)
try:
neutron.delete_security_group(sg_id)
except n_exc.NotFound:
LOG.debug('Security group %s already deleted', sg_id)
except n_exc.NeutronClientException:
LOG.exception('Error when deleting loadbalancer security '
'group. Leaving it orphaned.')
except n_exc.NotFound:
LOG.debug('Security group %s already deleted', sg_id)
def _create_lb_security_group_rule(self, loadbalancer, listener):
neutron = clients.get_neutron_client()