From 6a4dc039ffece61ee8148f5263b22f65d1a6e729 Mon Sep 17 00:00:00 2001 From: You Yamagata Date: Wed, 5 Dec 2012 13:18:27 +0900 Subject: 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 --- bin/swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin') 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() -- cgit v1.2.1