diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-07-06 16:13:55 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-07-06 16:14:41 +0000 |
commit | 9cc03b1bc771de15fe4caee25a769025ac81763c (patch) | |
tree | 6e98a6e2598ffec9150cf929ae1e4be78a5e6d18 /functest/utils | |
parent | 1bcc91c7ba00738dbc7d25422bc957d4cbf3f3ba (diff) |
Fix get_endpoint
Different endpoint urls can be searched with 'admin', 'internal' and
'public' interface.
Change-Id: I57207826d0dc2c18ce0e6a0abf09140f639f64ba
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/utils')
-rw-r--r-- | functest/utils/openstack_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/utils/openstack_utils.py b/functest/utils/openstack_utils.py index f8719bf0..4f8d6c35 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={}): |