summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/utils/keystone_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'snaps/openstack/utils/keystone_utils.py')
-rw-r--r--snaps/openstack/utils/keystone_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/snaps/openstack/utils/keystone_utils.py b/snaps/openstack/utils/keystone_utils.py
index f0de567..3823914 100644
--- a/snaps/openstack/utils/keystone_utils.py
+++ b/snaps/openstack/utils/keystone_utils.py
@@ -79,18 +79,18 @@ def keystone_client(os_creds):
session=keystone_session(os_creds), interface=os_creds.interface)
-def get_endpoint(os_creds, service_type, endpoint_type='publicURL'):
+def get_endpoint(os_creds, service_type, interface='public'):
"""
Returns the endpoint of specific service
:param os_creds: the OpenStack credentials (OSCreds) object
:param service_type: the type of specific service
- :param endpoint_type: the type of endpoint
+ :param interface: the type of interface
:return: the endpoint url
"""
auth = get_session_auth(os_creds)
key_session = keystone_session(os_creds)
return key_session.get_endpoint(
- auth=auth, service_type=service_type, endpoint_type=endpoint_type)
+ auth=auth, service_type=service_type, interface=interface)
def get_project(keystone=None, os_creds=None, project_name=None):