fix the bug for table NFVO_NSINST field status update incorrect 31/92331/2
authorhongyuzhao <zhao.hongyu@zte.com.cn>
Wed, 31 Jul 2019 07:24:10 +0000 (15:24 +0800)
committerhongyuzhao <zhao.hongyu@zte.com.cn>
Wed, 31 Jul 2019 07:28:30 +0000 (15:28 +0800)
Change-Id: I68de793dfb3e3b857ad2fab1bccc9a7fe601b23a
Issue-ID: VFC-1463
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
lcm/ns/biz/ns_terminate.py

index 53973d3..30fbd4c 100644 (file)
@@ -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: