Skip to content

Commit 498ddf9

Browse files
author
Steve Martinelli
committed
Change object API_NAME to 'object_store'
Previously the API_NAME was 'object-store' which caused all sorts of failures when running swift commands Change-Id: I448ca10f7d173024313722246e63cf23fd71117c Closes-Bug: #1343658
1 parent 3cfb97e commit 498ddf9

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)