From: quilesj Date: Thu, 9 Jan 2020 08:30:17 +0000 (+0000) Subject: Store vca status dictionary format X-Git-Tag: v7.0.1rc1~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F8461%2F1;p=osm%2FLCM.git Store vca status dictionary format Change-Id: Iabcee9f76c49d3db23620c0d45f94dbc18d83078 Signed-off-by: quilesj --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 9a001b1..f5221d1 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -163,6 +163,10 @@ class NsLcm(LcmBase): async def _on_update_n2vc_db(self, table, filter, path, updated_data): + # remove last dot from path (if exists) + if path.endswith('.'): + path = path[:-1] + # self.logger.debug('_on_update_n2vc_db(table={}, filter={}, path={}, updated_data={}' # .format(table, filter, path, updated_data)) @@ -175,9 +179,7 @@ class NsLcm(LcmBase): current_ns_status = nsr.get('nsState') # get vca status for NS - # status_dict = await self.n2vc.get_status(namespace='.' + nsr_id, yaml_format=False) - # TEMPORAL - status_dict = str(await self.n2vc.get_status(namespace='.' + nsr_id)) + status_dict = await self.n2vc.get_status(namespace='.' + nsr_id, yaml_format=False) # vcaStatus db_dict = dict()