Skip to content

Commit 8c556e6

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Change object API_NAME to 'object_store'"
2 parents f3dbab4 + 498ddf9 commit 8c556e6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎openstackclient/object/client.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@
2323

2424
DEFAULT_OBJECT_API_VERSION = '1'
2525
API_VERSION_OPTION = 'os_object_api_version'
26-
API_NAME = 'object-store'
26+
API_NAME = 'object_store'
2727
API_VERSIONS = {
2828
'1': 'openstackclient.object.client.ObjectClientv1',
2929
}
3030

3131

3232
def make_client(instance):
3333
"""Returns an object service client."""
34+
3435
object_client = utils.get_client_class(
3536
API_NAME,
3637
instance._api_version[API_NAME],
@@ -40,7 +41,7 @@ def make_client(instance):
4041
if instance._url:
4142
endpoint = instance._url
4243
else:
43-
endpoint = instance.get_endpoint_for_service_type(API_NAME)
44+
endpoint = instance.get_endpoint_for_service_type("object-store")
4445
client = object_client(
4546
endpoint=endpoint,
4647
token=instance._token,

0 commit comments

Comments
 (0)