Fix command name display issue in heat-manage usage

Fixed bug #1194840

Change-Id: Ibe43d0a025f0aed6bec7e414f7e80d0a0f652308
This commit is contained in:
guohliu 2013-07-02 22:49:23 +08:00
parent 17a18326d3
commit eb0dafb44b

View File

@ -63,8 +63,10 @@ command_opt = cfg.SubCommandOpt('command',
def main():
CONF.register_cli_opt(command_opt)
try:
CONF(sys.argv[1:], project='heat', prog='heat-engine',
version=version.version_info.version_string())
default_config_files = cfg.find_config_files('heat', 'heat-engine')
CONF(sys.argv[1:], project='heat', prog='heat-manage',
version=version.version_info.version_string(),
default_config_files=default_config_files)
log.setup("heat")
db_api.configure()
except RuntimeError as e: