Fix bug 954: Dump ns_config_info into a string 56/8356/2 v7.0.0rc1
authorDavid Garcia <david.garcia@canonical.com>
Mon, 9 Dec 2019 13:57:43 +0000 (14:57 +0100)
committerDavid Garcia <david.garcia@canonical.com>
Mon, 9 Dec 2019 14:39:25 +0000 (15:39 +0100)
Change-Id: I6077135dde8449950313967d004a368613cc61f3
Signed-off-by: David Garcia <david.garcia@canonical.com>
osm_lcm/ns.py

index 6ecb04d..be75a8c 100644 (file)
@@ -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)