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
This commit is contained in:
clayg 2012-12-09 09:00:34 -08:00 committed by Clay Gerrard
parent 08a110bdbc
commit 3dbc1a9b9c

View File

@ -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)