diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-06-24 07:42:20 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-06-27 07:58:19 +0000 |
commit | 00f3d66bc9af0292b6ab2433eb2a6e1de8467300 (patch) | |
tree | 233d9941c353acc64600ed8bdb945730b4157b0f /snaps/openstack/utils/keystone_utils.py | |
parent | c7ba89444d160cb81656a49cb93416ee5013aa8f (diff) |
Enable snaps work using public endpoint
When functest is not run on jumpserver but on other external host without
admin network, snaps failed to connect the admin endpoint. So running
snaps tests using public endpoint should be allowed.
JIRA: SNAPS-110
Change-Id: I8ca8d8c48330b5f427568d3d5fe942f6f2ca9ea9
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'snaps/openstack/utils/keystone_utils.py')
-rw-r--r-- | snaps/openstack/utils/keystone_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/snaps/openstack/utils/keystone_utils.py b/snaps/openstack/utils/keystone_utils.py index 8f5effd..061f3f0 100644 --- a/snaps/openstack/utils/keystone_utils.py +++ b/snaps/openstack/utils/keystone_utils.py @@ -69,7 +69,8 @@ def keystone_client(os_creds): :param os_creds: the OpenStack credentials (OSCreds) object :return: the client """ - return Client(version=os_creds.identity_api_version, session=keystone_session(os_creds)) + return Client(version=os_creds.identity_api_version, session=keystone_session(os_creds), + interface=os_creds.interface) def get_endpoint(os_creds, service_type, endpoint_type='publicURL'): |