]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
ml2: _commit_port_binding: Don't use None to mean False
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Fri, 14 Aug 2015 10:08:38 +0000 (19:08 +0900)
committerYAMAMOTO Takashi <yamamoto@midokura.com>
Fri, 14 Aug 2015 10:10:33 +0000 (19:10 +0900)
The second return value is a boolean.

Change-Id: Id5b2b00bdfcb7c81ba05b1905cd781f38e6ebad8

neutron/plugins/ml2/plugin.py

index 79741afba7f386e87fcc4d2a7f685633030cb44c..df527c0f8a5d2f345386313361ee63e6b6307756 100644 (file)
@@ -360,7 +360,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
                                                                   port_id)
             if not port_db:
                 # The port has been deleted concurrently.
-                return (None, None)
+                return (None, False)
             oport = self._make_port_dict(port_db)
             port = self._make_port_dict(port_db)
             network = new_context.network.current