diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-07-31 15:24:10 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-07-31 15:28:30 +0800 |
commit | 5a67813844dd4831a1a68f739e03a073473f3206 (patch) | |
tree | e64b95f5b73e154be3a89bf5c3b45ee4545ef4e3 | |
parent | 47946e91e293e30bc7f872f809147378206c2c05 (diff) |
fix the bug for table NFVO_NSINST field status update incorrect
Change-Id: I68de793dfb3e3b857ad2fab1bccc9a7fe601b23a
Issue-ID: VFC-1463
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
-rw-r--r-- | lcm/ns/biz/ns_terminate.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |