def main():
# NOTE(jaosorior): This is needed in order for db-sync to also register the
# keystonemiddleware options. Those options are used by clients that need a
# keystone session in order to be able to register their actions.
# This can be removed when mistral moves out of using keystonemiddleware in
# favor of keystoneauth1.
for group, opts in keystonemw_opts.list_auth_token_opts():
CONF.register_opts(opts, group=group)
CONF.register_cli_opt(config.os_actions_mapping_path)
config.parse_args()
if len(CONF.config_file) == 0:
print("Usage: sync_db --config-file <path-to-config-file>")
return exit(1)
logging.setup(CONF, 'Mistral')
db_api.setup_db()
action_manager.sync_db()
workflows.sync_db()
评论列表
文章目录