From: YAMAMOTO Takashi Date: Fri, 14 Aug 2015 10:08:38 +0000 (+0900) Subject: ml2: _commit_port_binding: Don't use None to mean False X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=977e7856c0ce81162c13c61a832b6bbef79c3aad;p=openstack-build%2Fneutron-build.git ml2: _commit_port_binding: Don't use None to mean False The second return value is a boolean. Change-Id: Id5b2b00bdfcb7c81ba05b1905cd781f38e6ebad8 --- diff --git a/neutron/plugins/ml2/plugin.py b/neutron/plugins/ml2/plugin.py index 79741afba..df527c0f8 100644 --- a/neutron/plugins/ml2/plugin.py +++ b/neutron/plugins/ml2/plugin.py @@ -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