]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
fix typo in OVS plugin from recent bugfix
authorDan Wendlandt <dan@nicira.com>
Tue, 21 Aug 2012 20:56:19 +0000 (13:56 -0700)
committerDan Wendlandt <dan@nicira.com>
Tue, 21 Aug 2012 20:57:27 +0000 (13:57 -0700)
bug 1039393

this demonstrates why we need plugin unit tests merged into the main set
of unit tests.

Change-Id: I132c706a7c69c8c779727835be4319c5ed649385

quantum/plugins/openvswitch/ovs_quantum_plugin.py

index 8a70729841d32b1e5c4425b2b451976075112f20..0d8bd09ba2f75e473e9a420ed3323afe639feb25 100644 (file)
@@ -353,7 +353,7 @@ class OVSQuantumPluginV2(db_base_plugin_v2.QuantumDbPluginV2,
         return [self._fields(net, fields) for net in nets]
 
     def update_port(self, context, id, port):
-        if self.agent_pc:
+        if self.agent_rpc:
             original_port = super(OVSQuantumPluginV2, self).get_port(context,
                                                                      id)
         port = super(OVSQuantumPluginV2, self).update_port(context, id, port)