Skip to content

Commit 848b3f0

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "Allow to specify auth_version in swift-dispersion tools"
2 parents 7196a32 + 9a423d0 commit 848b3f0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

bin/swift-dispersion-populate

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if __name__ == '__main__':
9696
retries_done = 0
9797

9898
url, token = get_auth(conf['auth_url'], conf['auth_user'],
99-
conf['auth_key'])
99+
conf['auth_key'], auth_version=conf.get('auth_version', '1.0'))
100100
account = url.rsplit('/', 1)[1]
101101
connpool = Pool(max_size=concurrency)
102102
connpool.create = lambda: Connection(conf['auth_url'],

bin/swift-dispersion-report

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Usage: %prog [options] [conf_file]
281281
coropool = GreenPool(size=concurrency)
282282

283283
url, token = get_auth(conf['auth_url'], conf['auth_user'],
284-
conf['auth_key'])
284+
conf['auth_key'], auth_version=conf.get('auth_version', '1.0'))
285285
account = url.rsplit('/', 1)[1]
286286
connpool = Pool(max_size=concurrency)
287287
connpool.create = lambda: Connection(conf['auth_url'],

etc/dispersion.conf-sample

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
auth_url = http://saio:8080/auth/v1.0
33
auth_user = test:tester
44
auth_key = testing
5+
# auth_url = http://saio:5000/v2.0/
6+
# auth_user = test:tester
7+
# auth_key = testing
8+
# auth_version = 2.0
9+
#
510
# swift_dir = /etc/swift
611
# dispersion_coverage = 1
712
# retries = 5

0 commit comments

Comments
 (0)