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 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=4502f90bb488ad9095f2fd56447d037e91fb4537;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 6ecb04d5..be75a8c8 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)