Optimize import inside trove.common.remote.neutron_client
Closes-bug: #1720315 Change-Id: I56f436777d976f572518349cc7733d0e2517ad27 Signed-off-by: Fan Zhang <zh.f@outlook.com>
This commit is contained in:
parent
4aea46ba9e
commit
d644363547
@ -21,6 +21,7 @@ from trove.common.strategies.cluster import strategy
|
||||
|
||||
from cinderclient.v2 import client as CinderClient
|
||||
from keystoneclient.service_catalog import ServiceCatalog
|
||||
from neutronclient.v2_0 import client as NeutronClient
|
||||
from novaclient.client import Client
|
||||
from swiftclient.client import Connection
|
||||
|
||||
@ -153,7 +154,6 @@ def swift_client(context, region_name=None):
|
||||
|
||||
|
||||
def neutron_client(context, region_name=None):
|
||||
from neutronclient.v2_0 import client as NeutronClient
|
||||
if CONF.neutron_url:
|
||||
# neutron endpoint url / publicURL does not include tenant segment
|
||||
url = CONF.neutron_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user