summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorYou Yamagata <bi.yamagata@gmail.com>2012-12-05 13:18:27 +0900
committerYou Yamagata <bi.yamagata@gmail.com>2012-12-05 13:26:37 +0900
commit6a4dc039ffece61ee8148f5263b22f65d1a6e729 (patch)
tree962c564e86eb4f6844f6ad296ea9203216859e58 /bin
parent4efe3bfa7e7fc1af4ab5d64c934076bf2fa4a80c (diff)
downloadpython-swiftclient-6a4dc039ffece61ee8148f5263b22f65d1a6e729.tar.gz
Add --insecure option to fix bug #1077869
If enable this option , swift CLI is allowed to access a keystone server with self signed certificate. Change-Id: I5e219fe875b246b68ac51a077e7ff15e95463adf
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/swift b/bin/swift
index 267744a..e1c87d1 100755
--- a/bin/swift
+++ b/bin/swift
@@ -41,7 +41,8 @@ def get_conn(options):
options.key,
auth_version=options.auth_version,
os_options=options.os_options,
- snet=options.snet)
+ snet=options.snet,
+ insecure=options.insecure)
def mkdirs(path):
@@ -1146,6 +1147,11 @@ Example:
default=environ.get('OS_ENDPOINT_TYPE'),
help='Openstack Endpoint type. ' \
'Defaults to env[OS_ENDPOINT_TYPE]')
+ parser.add_option('--insecure',
+ action="store_true", dest="insecure", default=False,
+ help='Allow swiftclient to access insecure keystone '
+ 'server. The keystone\'s certificate will not '
+ 'be verified.')
parser.disable_interspersed_args()
(options, args) = parse_args(parser, argv[1:], enforce_requires=False)
parser.enable_interspersed_args()