From: hongyuzhao Date: Wed, 31 Jul 2019 07:24:10 +0000 (+0800) Subject: fix the bug for table NFVO_NSINST field status update incorrect X-Git-Tag: 1.3.4~14 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=5a67813844dd4831a1a68f739e03a073473f3206;p=vfc%2Fnfvo%2Flcm.git fix the bug for table NFVO_NSINST field status update incorrect Change-Id: I68de793dfb3e3b857ad2fab1bccc9a7fe601b23a Issue-ID: VFC-1463 Signed-off-by: hongyuzhao --- diff --git a/lcm/ns/biz/ns_terminate.py b/lcm/ns/biz/ns_terminate.py index 53973d3e..30fbd4c9 100644 --- a/lcm/ns/biz/ns_terminate.py +++ b/lcm/ns/biz/ns_terminate.py @@ -54,7 +54,7 @@ class TerminateNsService(threading.Thread): self.cancel_vl_list() self.cancel_pnf_list() - NSInstModel.objects.filter(id=self.ns_inst_id).update(status='null') + NSInstModel.objects.filter(id=self.ns_inst_id).update(status='NOT_INSTANTIATED') JobUtil.add_job_status(self.job_id, JOB_PROGRESS.FINISHED, "ns terminate ends.", '') NsLcmOpOcc.update(self.occ_id, "COMPLETED") except NSLCMException as e: