1 ##############################################################################
2 # Copyright (c) 2018 Nokia Corporation and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 from oslo_config import cfg
10 from oslo_utils import importutils
17 help='the component of doctor app manager',
21 help='the ip of app manager',
25 help='the port of doctor app manager',
30 _app_manager_name_class_mapping = {
31 'sample': 'doctor_tests.app_manager.sample.SampleAppManager'
35 def get_app_manager(stack, conf, log):
37 _app_manager_name_class_mapping.get(conf.app_manager.type))
38 return importutils.import_object(app_manager_class, stack, conf, log)