aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaopeng zhang <zhang.maopeng1@zte.com.cn>2020-04-13 10:44:08 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-13 10:44:08 +0000
commitc186495de0d47d1d9bc2f3d957633f31275f51b7 (patch)
treed2ede9ed5e70955a3cca971c58c0a589ca6197f6
parent37885adf8ee0ac29d35b34df763ae9a5aa218597 (diff)
parent94de667f1a44371b9b77cabea74a812ea7732c0e (diff)
Merge "Update ns_terminate code about cancel wait delete vnfs multithreading"
-rw-r--r--lcm/ns/biz/ns_terminate.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/lcm/ns/biz/ns_terminate.py b/lcm/ns/biz/ns_terminate.py
index 32845ddc..a4ae4df5 100644
--- a/lcm/ns/biz/ns_terminate.py
+++ b/lcm/ns/biz/ns_terminate.py
@@ -145,11 +145,7 @@ class TerminateNsService(threading.Thread):
job_msg = "Delete vnfinst:[%s] %s." % (vnfinst.nfinstid, delete_result)
JobUtil.add_job_status(self.job_id, cur_progress, job_msg)
vnf_jobs.append((vnfinst.nfinstid, vnf_job_id))
-
- thread = threading.Thread(
- target=self.wait_delete_vnfs,
- args=(vnf_jobs, cur_progress, step_progress,))
- thread.start()
+ self.wait_delete_vnfs(vnf_jobs, cur_progress, step_progress)
def wait_delete_vnfs(self, vnf_jobs, cur_progress, step_progress):
for vnfinstid, vnfjobid in vnf_jobs: