Code Review
/
vfc
/
nfvo
/
lcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
37885ad
)
Merge "Update ns_terminate code about cancel wait delete vnfs multithreading"
author
maopeng zhang
<zhang.maopeng1@zte.com.cn>
Mon, 13 Apr 2020 10:44:08 +0000
(10:44 +0000)
committer
Gerrit Code Review
<gerrit@onap.org>
Mon, 13 Apr 2020 10:44:08 +0000
(10:44 +0000)
lcm/ns/biz/ns_terminate.py
patch
|
blob
|
history
diff --git
a/lcm/ns/biz/ns_terminate.py
b/lcm/ns/biz/ns_terminate.py
index
32845dd
..
a4ae4df
100644
(file)
--- 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: