Skip to content

Instantly share code, notes, and snippets.

@clayg
Created January 26, 2016 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/61db02d7aa82d06c8f29 to your computer and use it in GitHub Desktop.
Save clayg/61db02d7aa82d06c8f29 to your computer and use it in GitHub Desktop.
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)
@a1git
Copy link

a1git commented Jan 26, 2016

thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment