Merge "Keep openstack mapping_path option"

This commit is contained in:
Zuul 2020-03-20 05:57:35 +00:00 committed by Gerrit Code Review
commit 8a5d35ac6f
1 changed files with 8 additions and 0 deletions

View File

@ -127,6 +127,14 @@ command_opt = cfg.SubCommandOpt('command',
CONF.register_cli_opt(command_opt)
# To Keep backwards compatibility we need to accept mapping path
# from mistral-extra if present
try:
import mistral_extra.config as extra_conf
CONF.register_cli_opt(extra_conf.os_actions_mapping_path)
except ImportError:
LOG.debug("Mistral-extra not installed")
def main():
config = alembic_cfg.Config(