]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Merge "Minor: remove unnecessary intermediate variable"
authorJenkins <jenkins@review.openstack.org>
Thu, 16 Oct 2014 05:56:55 +0000 (05:56 +0000)
committerGerrit Code Review <review@openstack.org>
Thu, 16 Oct 2014 05:56:55 +0000 (05:56 +0000)
1  2 
neutron/plugins/ml2/plugin.py

index 302f845e9194fabd57a6d95f866f7482c278acbb,73eae18324dc39290b7cf41738273ab97d7c00ad..5b9a7eb05b9c17d0fb32cbef1c6ff38d2602d9de
@@@ -1003,10 -1002,9 +1003,10 @@@ class Ml2Plugin(db_base_plugin_v2.Neutr
                  mech_context = driver_context.PortContext(self, context, port,
                                                            network, binding)
                  if is_dvr_enabled and utils.is_dvr_serviced(device_owner):
-                     router_info = l3plugin.dvr_deletens_if_no_port(context, id)
-                     removed_routers += router_info
+                     removed_routers = l3plugin.dvr_deletens_if_no_port(
+                         context, id)
                  self.mechanism_manager.delete_port_precommit(mech_context)
 +                bound_mech_contexts.append(mech_context)
                  self._delete_port_security_group_bindings(context, id)
              if l3plugin:
                  router_ids = l3plugin.disassociate_floatingips(