summaryrefslogtreecommitdiff
path: root/ironicclient/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironicclient/client.py')
-rw-r--r--ironicclient/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ironicclient/client.py b/ironicclient/client.py
index b5bea81..be3fac6 100644
--- a/ironicclient/client.py
+++ b/ironicclient/client.py
@@ -124,6 +124,9 @@ def get_client(api_version, os_auth_token=None, ironic_url=None,
if not endpoint:
if session:
try:
+ # Pass the endpoint, it will be used to get hostname
+ # and port that will be used for API version caching. It will
+ # be also set as endpoint_override.
endpoint = session.get_endpoint(
service_type=os_service_type,
interface=os_endpoint_type,