X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Fns.py;h=46403489f61f51cff066269a18403be7ff26c160;hb=refs%2Fchanges%2F94%2F12294%2F4;hp=a33dc9ecad9c7c74e6dba20fbb997923de24bd2d;hpb=12794ee9112f4da3c3988bf920fbc8af3c492eb1;p=osm%2FLCM.git diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index a33dc9e..4640348 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -226,6 +226,7 @@ class NsLcm(LcmBase): "migrate": self.RO.status, "healing": self.RO.recreate_status, "verticalscale": self.RO.status, + "start_stop_rebuild": self.RO.status, } @staticmethod @@ -413,7 +414,7 @@ class NsLcm(LcmBase): @staticmethod def _parse_cloud_init(cloud_init_text, additional_params, vnfd_id, vdu_id): try: - env = Environment(undefined=StrictUndefined) + env = Environment(undefined=StrictUndefined, autoescape=True) template = env.from_string(cloud_init_text) return template.render(additional_params or {}) except UndefinedError as e: @@ -7310,7 +7311,8 @@ class NsLcm(LcmBase): self.logger.info("response from RO: {}".format(result_dict)) action_id = result_dict["action_id"] await self._wait_ng_ro( - nsr_id, action_id, nslcmop_id, start_deploy, self.timeout_operate + nsr_id, action_id, nslcmop_id, start_deploy, + self.timeout_operate, None, "start_stop_rebuild", ) return "COMPLETED", "Done" except (ROclient.ROClientException, DbException, LcmException) as e: