diff --git a/bin/swift-dispersion-populate b/bin/swift-dispersion-populate index c5c2cd6976..6e8d3ed339 100755 --- a/bin/swift-dispersion-populate +++ b/bin/swift-dispersion-populate @@ -96,7 +96,7 @@ if __name__ == '__main__': retries_done = 0 url, token = get_auth(conf['auth_url'], conf['auth_user'], - conf['auth_key']) + conf['auth_key'], auth_version=conf.get('auth_version', '1.0')) account = url.rsplit('/', 1)[1] connpool = Pool(max_size=concurrency) connpool.create = lambda: Connection(conf['auth_url'], diff --git a/bin/swift-dispersion-report b/bin/swift-dispersion-report index a6d4943d84..e4823170fb 100755 --- a/bin/swift-dispersion-report +++ b/bin/swift-dispersion-report @@ -281,7 +281,7 @@ Usage: %prog [options] [conf_file] coropool = GreenPool(size=concurrency) url, token = get_auth(conf['auth_url'], conf['auth_user'], - conf['auth_key']) + conf['auth_key'], auth_version=conf.get('auth_version', '1.0')) account = url.rsplit('/', 1)[1] connpool = Pool(max_size=concurrency) connpool.create = lambda: Connection(conf['auth_url'], diff --git a/etc/dispersion.conf-sample b/etc/dispersion.conf-sample index cf1a2624db..f153b6e2f5 100644 --- a/etc/dispersion.conf-sample +++ b/etc/dispersion.conf-sample @@ -2,6 +2,11 @@ auth_url = http://saio:8080/auth/v1.0 auth_user = test:tester auth_key = testing +# auth_url = http://saio:5000/v2.0/ +# auth_user = test:tester +# auth_key = testing +# auth_version = 2.0 +# # swift_dir = /etc/swift # dispersion_coverage = 1 # retries = 5