diff options
author | ajay_dp001 <ajay.deep.singh@est.tech> | 2021-08-25 13:53:27 +0530 |
---|---|---|
committer | ajay_dp001 <ajay.deep.singh@est.tech> | 2021-10-04 20:53:55 +0530 |
commit | 053579b1a3a9d71fdc8fde5ed67600b453de083c (patch) | |
tree | cced45413b29daf5a718561f853ec880c3c718a3 /components/pm-subscription-handler/pmsh_service/pmsh_service_main.py | |
parent | 62a3787b8c2f00ad4ba681517970db3201717088 (diff) |
[DCAEGEN2] PMSH AppConfig Update
- Simplified existing PMSH Appconfig
- Major version bump for J release
Issue-ID: DCAEGEN2-2814
Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech>
Change-Id: I8ed572ccc7385cfdf91e51a126622821c113c53d
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/pmsh_service_main.py')
-rwxr-xr-x | components/pm-subscription-handler/pmsh_service/pmsh_service_main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py b/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py index 4f2ca4a1..0b6544b5 100755 --- a/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py +++ b/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py @@ -20,6 +20,7 @@ from signal import signal, SIGTERM from mod import db, create_app, launch_api_server, logger from mod.exit_handler import ExitHandler +from mod.pmsh_config import AppConfig as NewAppConfig from mod.pmsh_utils import AppConfig, PeriodicTask from mod.policy_response_handler import PolicyResponseHandler from mod.subscription_handler import SubscriptionHandler @@ -32,6 +33,7 @@ def main(): app.app_context().push() db.create_all(app=app) app_conf = AppConfig() + pmsh_app_conf = NewAppConfig() policy_mr_pub = app_conf.get_mr_pub('policy_pm_publisher') policy_mr_sub = app_conf.get_mr_sub('policy_pm_subscriber') aai_event_mr_sub = app_conf.get_mr_sub('aai_subscriber') @@ -54,7 +56,7 @@ def main(): signal(SIGTERM, ExitHandler(periodic_tasks=periodic_tasks, app_conf=app_conf, subscription_handler=subscription_handler)) - launch_api_server(app_conf) + launch_api_server(pmsh_app_conf) except Exception as e: logger.error(f'Failed to initialise PMSH: {e}', exc_info=True) |