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:
parent
08a110bdbc
commit
3dbc1a9b9c
@ -295,10 +295,12 @@ if __name__ == '__main__':
|
|||||||
patcher.monkey_patch()
|
patcher.monkey_patch()
|
||||||
hubs.get_hub().debug_exceptions = False
|
hubs.get_hub().debug_exceptions = False
|
||||||
|
|
||||||
parser = OptionParser(usage='''
|
conffile = '/etc/swift/dispersion.conf'
|
||||||
Usage: %prog [options] [conf_file]
|
|
||||||
|
|
||||||
[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,
|
parser.add_option('-j', '--dump-json', action='store_true', default=False,
|
||||||
help='dump dispersion report in json format')
|
help='dump dispersion report in json format')
|
||||||
parser.add_option('-d', '--debug', action='store_true', default=False,
|
parser.add_option('-d', '--debug', action='store_true', default=False,
|
||||||
@ -311,7 +313,6 @@ Usage: %prog [options] [conf_file]
|
|||||||
help='Only run object report')
|
help='Only run object report')
|
||||||
options, args = parser.parse_args()
|
options, args = parser.parse_args()
|
||||||
|
|
||||||
conffile = '/etc/swift/dispersion.conf'
|
|
||||||
if args:
|
if args:
|
||||||
conffile = args.pop(0)
|
conffile = args.pop(0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user