summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-10-01 10:30:48 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2012-10-04 09:49:24 -0700
commit31764456bd4536c920fb1d768fbdebf93e016a8a (patch)
tree1ca740e184677e538e428bb3d7168c0457f0a6f5 /nova/openstack
parentb01c148f2fcf68514a276393a6b5a4f79a60f399 (diff)
downloadnova-31764456bd4536c920fb1d768fbdebf93e016a8a.tar.gz
nova-31764456bd4536c920fb1d768fbdebf93e016a8a.tar.xz
nova-31764456bd4536c920fb1d768fbdebf93e016a8a.zip
Stop network.api import on network import
The nova.network.__init__.py was importing the network.api automatically at import time. This was leading to some silly workarounds (for example in nova/virt/firewall.py) involving late importing nova.network to stop circular imports. It is also causing issues with https://review.openstack.org/#/c/13007/ because quantum api needs to import a flag from network manager which is causing a circular import. This fixes the issue by moving to use the code from volume_api which only imports the api class when the method is called. It cleans up the tests that were stubbing out network.API and also removes the unneeded workarounds. Change-Id: I4c9b372d078ab4398e797335a8de5e9e1077e31f
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions