summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service
diff options
context:
space:
mode:
authorajay_dp001 <ajay.deep.singh@est.tech>2021-04-11 23:05:32 +0530
committerajay_dp001 <ajay.deep.singh@est.tech>2021-04-21 17:34:14 +0530
commit47276b70370d0e962b7f6c6423f5ec39d50c5ec1 (patch)
tree38ec26e297e7c7a63d24fe8fcd62abd72f6ccdc4 /components/pm-subscription-handler/pmsh_service
parent835ad818323544acb8b030a4f274de14496d7b02 (diff)
[DCAEGEN2] PMSH Update to Support Helm Transformation1.3.1-pmsh
- Update Config-key for PMSH Monitoring Policy - Version bump Issue-ID: DCAEGEN2-2713 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: I70138795e5aa46e7c133415b02ba8a2a0f6ac0ba
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service')
-rwxr-xr-xcomponents/pm-subscription-handler/pmsh_service/mod/pmsh_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/pmsh_utils.py b/components/pm-subscription-handler/pmsh_service/mod/pmsh_utils.py
index a5fc86e6..9ddff315 100755
--- a/components/pm-subscription-handler/pmsh_service/mod/pmsh_utils.py
+++ b/components/pm-subscription-handler/pmsh_service/mod/pmsh_utils.py
@@ -88,7 +88,7 @@ class AppConfig:
self.operational_policy_name = conf['config'].get('operational_policy_name')
self.control_loop_name = conf['config'].get('control_loop_name')
self.sub_schema = _load_sub_schema_from_file()
- self.subscription = Subscription(**conf['policy']['subscription'])
+ self.subscription = Subscription(**conf['config']['pmsh_policy']['subscription'])
self.nf_filter = None
def __new__(cls, *args, **kwargs):
@@ -141,7 +141,7 @@ class AppConfig:
"""
try:
app_conf = self._get_pmsh_config()
- self.subscription = Subscription(**app_conf['policy']['subscription'])
+ self.subscription = Subscription(**app_conf['config']['pmsh_policy']['subscription'])
logger.info("AppConfig data has been refreshed")
except Exception:
logger.error('Failed to refresh PMSH AppConfig')