summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeuh <fabien+swift@bagard.xyz>2020-07-28 16:16:19 +0200
committerMeuh <fabien+swift@bagard.xyz>2020-07-28 20:03:11 +0200
commit842086d27fbb8ae8b5b723a0167d33ca2050feea (patch)
treeb2ef723f2c0bcf1d57fb0b711af362d3a9939d3e
parent22d1f3a39a9b23a62f443c2bd8ab9639c1b5a669 (diff)
downloadpython-swiftclient-842086d27fbb8ae8b5b723a0167d33ca2050feea.tar.gz
Add max_backoff and starting_backoff for get_conn in swift service
Change-Id: I45f5d3009e0e2015c7366384ee826113fc27c70b
-rw-r--r--swiftclient/service.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/swiftclient/service.py b/swiftclient/service.py
index b89399f..cd96a5b 100644
--- a/swiftclient/service.py
+++ b/swiftclient/service.py
@@ -274,7 +274,7 @@ def get_conn(options):
return Connection(options['auth'],
options['user'],
options['key'],
- options['retries'],
+ retries=options['retries'],
auth_version=options['auth_version'],
os_options=options['os_options'],
snet=options['snet'],
@@ -283,7 +283,9 @@ def get_conn(options):
cert=options['os_cert'],
cert_key=options['os_key'],
ssl_compression=options['ssl_compression'],
- force_auth_retry=options['force_auth_retry'])
+ force_auth_retry=options['force_auth_retry'],
+ starting_backoff=options.get('starting_backoff', 1),
+ max_backoff=options.get('max_backoff', 64))
def mkdirs(path):