From: David Garcia Date: Mon, 9 Dec 2019 13:57:43 +0000 (+0100) Subject: Fix bug 954: Dump ns_config_info into a string X-Git-Tag: v7.0.0rc1^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F8356%2F2;p=osm%2FLCM.git Fix bug 954: Dump ns_config_info into a string Change-Id: I6077135dde8449950313967d004a368613cc61f3 Signed-off-by: David Garcia --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 6ecb04d..be75a8c 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -21,6 +21,7 @@ import yaml import logging import logging.handlers import traceback +import json from jinja2 import Environment, Template, meta, TemplateError, TemplateNotFound, TemplateSyntaxError from osm_lcm import ROclient @@ -1125,7 +1126,7 @@ class NsLcm(LcmBase): for initial_config_primitive in initial_config_primitive_list: # adding information on the vca_deployed if it is a NS execution environment if not vca_deployed["member-vnf-index"]: - deploy_params["ns_config_info"] = self._get_ns_config_info(nsr_id) + deploy_params["ns_config_info"] = json.dumps(self._get_ns_config_info(nsr_id)) # TODO check if already done primitive_params_ = self._map_primitive_params(initial_config_primitive, {}, deploy_params)