]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ovsdb: session.rpc never initialized
authorAaron Rosen <aaronorosen@gmail.com>
Wed, 17 Jun 2015 00:23:09 +0000 (17:23 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Wed, 17 Jun 2015 00:32:52 +0000 (17:32 -0700)
commit95b6a74af10e2150b017647028de8454ef1cda2f
tree13435f5ce2e8d3af8ece27e0adc87acc05668839
parent2c166bb442852e18931208b1fd8bf05086520104
ovsdb: session.rpc never initialized

Previously, if idl.Transaction.commit_block() returned a status of
TRY_AGAIN we would check self.api.idl._session.rpc.status which would
result in an attribute error as rpc is None.

This patch fixes this attribute error by removing this unneeded check. In
addtion, the force_reconnect() is also removed as ovs.jsonrpc handles
reconnecting automatically for us.

Change-Id: Ibf3ce5cd3432845f8938a1d83637ecf59b14b5ca
Closes-bug: 1465889
neutron/agent/ovsdb/impl_idl.py