diff options
Diffstat (limited to 'openstackclient/object/client.py')
| -rw-r--r-- | openstackclient/object/client.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/object/client.py b/openstackclient/object/client.py index 1ac905c3..beb7c04f 100644 --- a/openstackclient/object/client.py +++ b/openstackclient/object/client.py @@ -33,10 +33,10 @@ API_VERSIONS = { def make_client(instance): """Returns an object-store API client.""" - if instance._url: - endpoint = instance._url - else: - endpoint = instance.get_endpoint_for_service_type("object-store") + endpoint = instance.get_endpoint_for_service_type( + 'object-store', + region_name=instance._region_name, + ) client = object_store_v1.APIv1( session=instance.session, |
