From 3dbc1a9b9cb32cb06cf3158c374b24524c3c2c6a Mon Sep 17 00:00:00 2001 From: clayg Date: Sun, 9 Dec 2012 09:00:34 -0800 Subject: [PATCH] document correct config in dispersion-report help The --help message of swift-dispersion-report used to say /etc/swift/stats.conf instead of the correct and consistent /etc/swift/dispersion.conf - this change updates that commandline help message. Change-Id: I69ad64d31bb86eb0d36fcf5b17aa8bf42f646ed1 --- bin/swift-dispersion-report | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/swift-dispersion-report b/bin/swift-dispersion-report index fa4f8d45f5..590dede13c 100755 --- a/bin/swift-dispersion-report +++ b/bin/swift-dispersion-report @@ -295,10 +295,12 @@ if __name__ == '__main__': patcher.monkey_patch() hubs.get_hub().debug_exceptions = False - parser = OptionParser(usage=''' -Usage: %prog [options] [conf_file] + conffile = '/etc/swift/dispersion.conf' -[conf_file] defaults to /etc/swift/stats.conf'''.strip()) + parser = OptionParser(usage=''' +Usage: %%prog [options] [conf_file] + +[conf_file] defaults to %s'''.strip() % conffile) parser.add_option('-j', '--dump-json', action='store_true', default=False, help='dump dispersion report in json format') parser.add_option('-d', '--debug', action='store_true', default=False, @@ -311,7 +313,6 @@ Usage: %prog [options] [conf_file] help='Only run object report') options, args = parser.parse_args() - conffile = '/etc/swift/dispersion.conf' if args: conffile = args.pop(0)