From d4816683ee2c5d32a77678ea2d2862459cabcdb1 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Mon, 9 Dec 2019 14:57:43 +0100 Subject: [PATCH] Fix bug 954: Dump ns_config_info into a string Change-Id: I6077135dde8449950313967d004a368613cc61f3 Signed-off-by: David Garcia --- osm_lcm/ns.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.25.1