summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDavid Kranz <david.kranz@qrclab.com>2012-08-28 10:25:42 -0400
committerDavid Kranz <david.kranz@qrclab.com>2012-09-04 12:53:18 -0400
commit4b4fbf0dc0d2e918b88c1e387f462faca7e98ffd (patch)
treee76b4d5f0e2f6cfd279deaf3fb699bfadfd7fa1f /bin
parentc97a90c847f8811e5eb766dd26ff8373675514ac (diff)
downloadpython-swiftclient-4b4fbf0dc0d2e918b88c1e387f462faca7e98ffd.tar.gz
Allow endpoint type to be specified.
Fixes bug 1037690. Change-Id: I36b3807b2f3234c778316f1e743d27304755aed8
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/swift b/bin/swift
index e855e54..550a7f1 100755
--- a/bin/swift
+++ b/bin/swift
@@ -1025,6 +1025,7 @@ def parse_args(parser, args, enforce_requires=True):
'tenant_id': options.os_tenant_id,
'tenant_name': options.os_tenant_name,
'service_type': options.os_service_type,
+ 'endpoint_type': options.os_endpoint_type,
'auth_token': options.os_auth_token,
'object_storage_url': options.os_storage_url,
}
@@ -1133,6 +1134,11 @@ Example:
'Defaults to env[OS_SERVICE_TYPE]')
parser.add_option('--os_service_type',
help=SUPPRESS_HELP)
+ parser.add_option('--os-endpoint-type',
+ metavar='<endpoint-type>',
+ default=environ.get('OS_ENDPOINT_TYPE'),
+ help='Openstack Endpoint type. (publicURL, e.g.)' \
+ 'Defaults to env[OS_ENDPOINT_TYPE]')
parser.disable_interspersed_args()
(options, args) = parse_args(parser, argv[1:], enforce_requires=False)
parser.enable_interspersed_args()