From 9cc03b1bc771de15fe4caee25a769025ac81763c Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Thu, 6 Jul 2017 16:13:55 +0000 Subject: [PATCH] Fix get_endpoint Different endpoint urls can be searched with 'admin', 'internal' and 'public' interface. Change-Id: I57207826d0dc2c18ce0e6a0abf09140f639f64ba Signed-off-by: Linda Wang --- functest/utils/openstack_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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={}): -- 2.16.6