From: Linda Wang Date: Thu, 6 Jul 2017 16:13:55 +0000 (+0000) Subject: Fix get_endpoint X-Git-Tag: opnfv-5.0.RC1~255^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F37025%2F1;p=functest.git Fix get_endpoint Different endpoint urls can be searched with 'admin', 'internal' and 'public' interface. Change-Id: I57207826d0dc2c18ce0e6a0abf09140f639f64ba Signed-off-by: Linda Wang --- diff --git a/functest/utils/openstack_utils.py b/functest/utils/openstack_utils.py index f8719bf0c..4f8d6c357 100644 --- a/functest/utils/openstack_utils.py +++ b/functest/utils/openstack_utils.py @@ -175,11 +175,11 @@ def get_session_auth(other_creds={}): return auth -def get_endpoint(service_type, endpoint_type='publicURL'): +def get_endpoint(service_type, interface='public'): auth = get_session_auth() return get_session().get_endpoint(auth=auth, service_type=service_type, - endpoint_type=endpoint_type) + interface=interface) def get_session(other_creds={}):