Browse Source

Merge "Switch except statements order"

Zuul 1 month ago
parent
commit
a0197124c0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      kuryr_kubernetes/controller/drivers/lbaasv2.py

+ 2
- 2
kuryr_kubernetes/controller/drivers/lbaasv2.py View File

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

Loading…
Cancel
Save