summaryrefslogtreecommitdiff
path: root/openstackclient/object
diff options
context:
space:
mode:
authorRoxana Gherle <roxana.gherle@hp.com>2015-05-22 16:22:35 -0700
committerRoxana Gherle <roxana.gherle@hp.com>2015-07-02 10:10:46 -0700
commit5521e4c504c6a3a06f17a9e4f80444743aa293c7 (patch)
treea07d4db3dae479087997bf60c3f1a434afdcdd8a /openstackclient/object
parent7e067c6f4f2dddfd9ea4b4a3df90959a7d8f2f0f (diff)
downloadpython-openstackclient-5521e4c504c6a3a06f17a9e4f80444743aa293c7.tar.gz
Add --os-endpoint-type cli optional argument
User should be able to specify the endpoint type through a CLI optional argument/ENV variable setting. We will name this new optional argument: --os-endpoint-type (Env: OS_ENDPOINT_TYPE) and based on the value given, the service API will use that specific endpoint type. Possible values: public, admin, internal. DocImpact Closes-Bug: #1454392 Change-Id: Ife3d4e46b44c0ddcd712b1130e27e362545a9a29
Diffstat (limited to 'openstackclient/object')
-rw-r--r--openstackclient/object/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/object/client.py b/openstackclient/object/client.py
index beb7c04f..676f6642 100644
--- a/openstackclient/object/client.py
+++ b/openstackclient/object/client.py
@@ -36,6 +36,7 @@ def make_client(instance):
endpoint = instance.get_endpoint_for_service_type(
'object-store',
region_name=instance._region_name,
+ endpoint_type=instance._endpoint_type,
)
client = object_store_v1.APIv1(