Merge "Optimize import inside trove.common.remote.neutron_client"

This commit is contained in:
Zuul 2017-10-26 20:42:21 +00:00 committed by Gerrit Code Review
commit 7bddc1ae80

View File

@ -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