NSX|V3: remove double import
TrivialFix Change-Id: I2e0b8319a73d848e717e263306d3fd1f34ad6dfe
This commit is contained in:
parent
307133d844
commit
f769e3abdb
@ -31,7 +31,6 @@ from oslo_log import log
|
|||||||
from oslo_service import loopingcall
|
from oslo_service import loopingcall
|
||||||
from requests import adapters
|
from requests import adapters
|
||||||
from vmware_nsx._i18n import _, _LI, _LW
|
from vmware_nsx._i18n import _, _LI, _LW
|
||||||
from vmware_nsx.common import exceptions as nsx_err
|
|
||||||
from vmware_nsx.common import exceptions as nsx_exc
|
from vmware_nsx.common import exceptions as nsx_exc
|
||||||
from vmware_nsx.nsxlib.v3 import client as nsx_client
|
from vmware_nsx.nsxlib.v3 import client as nsx_client
|
||||||
|
|
||||||
@ -372,7 +371,7 @@ class ClusteredAPI(object):
|
|||||||
def endpoint_connection(self):
|
def endpoint_connection(self):
|
||||||
endpoint = self._select_endpoint(revalidate=True)
|
endpoint = self._select_endpoint(revalidate=True)
|
||||||
if not endpoint:
|
if not endpoint:
|
||||||
raise nsx_err.ServiceClusterUnavailable(
|
raise nsx_exc.ServiceClusterUnavailable(
|
||||||
cluster_id=self.cluster_id)
|
cluster_id=self.cluster_id)
|
||||||
|
|
||||||
if endpoint.pool.free() == 0:
|
if endpoint.pool.free() == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user