diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-02-14 00:41:39 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-02-14 00:41:39 +0000 |
commit | 19d7e1812a99d73785146667ae2f3a7156f06898 (patch) | |
tree | cbc5160a6836fe642274ab13aec8d8555a6f9203 /bin | |
parent | 0c7264c21d06d37de5db0beee677c4e026dc8f45 (diff) | |
parent | b182112719ab87942472e44aa3446ea0eb19a289 (diff) | |
download | python-swiftclient-19d7e1812a99d73785146667ae2f3a7156f06898.tar.gz |
Merge "Port to python-requests"2.0
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -32,7 +32,7 @@ try: except ImportError: import json -from swiftclient import Connection, HTTPException +from swiftclient import Connection, RequestException from swiftclient import command_helpers from swiftclient.utils import config_true_value, prt_bytes from swiftclient.multithreading import MultiThreadingManager @@ -1392,16 +1392,16 @@ Examples: parser.add_option('--insecure', action="store_true", dest="insecure", default=default_val, - help='Allow swiftclient to access insecure keystone ' - 'server. The keystone\'s certificate will not ' - 'be verified. ' + help='Allow swiftclient to access servers without ' + 'having to verify the SSL certificate. ' 'Defaults to env[SWIFTCLIENT_INSECURE] ' '(set to \'true\' to enable).') parser.add_option('--no-ssl-compression', action='store_false', dest='ssl_compression', default=True, - help='Disable SSL compression when using https. ' - 'This may increase performance.') + help='This option is deprecated and not used anymore. ' + 'SSL compression should be disabled by default ' + 'by the system SSL library') parser.disable_interspersed_args() (options, args) = parse_args(parser, argv[1:], enforce_requires=False) parser.enable_interspersed_args() @@ -1429,7 +1429,7 @@ Examples: parser.usage = globals()['st_%s_help' % args[0]] try: globals()['st_%s' % args[0]](parser, argv[1:], thread_manager) - except (ClientException, HTTPException, socket.error) as err: + except (ClientException, RequestException, socket.error) as err: thread_manager.error(str(err)) had_error = thread_manager.error_count |