Created
January 26, 2016 22:08
-
-
Save clayg/61db02d7aa82d06c8f29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bin/swift-dispersion-report b/bin/swift-dispersion-report | |
index 48dff80..143247c 100755 | |
--- a/bin/swift-dispersion-report | |
+++ b/bin/swift-dispersion-report | |
@@ -385,6 +385,8 @@ Usage: %%prog [options] [conf_file] | |
os_options=os_options, | |
insecure=insecure) | |
account = url.rsplit('/', 1)[1] | |
+ from urlparse import urlparse | |
+ account = urlparse(url).netloc.split('.', 1)[0] | |
connpool = Pool(max_size=concurrency) | |
connpool.create = lambda: SimpleClient( | |
url=url, token=token, retries=retries) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you :)