summaryrefslogtreecommitdiff
path: root/bin/swift
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-07-12 15:17:03 +0000
committerGerrit Code Review <review@openstack.org>2013-07-12 15:17:03 +0000
commit65e5ef7b8137062a9a82b3fc99f33074f1e7c2e7 (patch)
tree43e51d48133ebfe821f7b2c16c85bac0aac00234 /bin/swift
parentc460ebff0a6ab284d47e215f7f9156e73e7a40a9 (diff)
parent188e835eadeb24ebdb822af3971e792d99d5b622 (diff)
downloadpython-swiftclient-65e5ef7b8137062a9a82b3fc99f33074f1e7c2e7.tar.gz
Merge "Allow setting # of retries in the binary"
Diffstat (limited to 'bin/swift')
-rwxr-xr-xbin/swift3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/swift b/bin/swift
index 4b3c068..28ee31d 100755
--- a/bin/swift
+++ b/bin/swift
@@ -46,6 +46,7 @@ def get_conn(options):
return Connection(options.auth,
options.user,
options.key,
+ options.retries,
auth_version=options.auth_version,
os_options=options.os_options,
snet=options.snet,
@@ -1313,6 +1314,8 @@ Examples:
parser.add_option('-K', '--key', dest='key',
default=environ.get('ST_KEY'),
help='Key for obtaining an auth token.')
+ parser.add_option('-R', '--retries', type=int, default=5, dest='retries',
+ help='The number of times to retry a failed connection.')
parser.add_option('--os-username',
metavar='<auth-user-name>',
default=environ.get('OS_USERNAME'),