diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-11-13 13:41:08 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-11-13 13:42:42 +0800 |
commit | fcfd1c6e016883adb7ea92dab119b247ee5bce2f (patch) | |
tree | 61286ddd20cf6b93ed4d46b5ab8341e88944429a | |
parent | cd061f479aab78eab62b81db702fa1f85dd534b0 (diff) |
Fix ns term logic
Change-Id: Id59ff11a70bcc8e39d418eda038c09683a64fcde
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/ns_vnfs/biz/terminate_nfs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lcm/ns_vnfs/biz/terminate_nfs.py b/lcm/ns_vnfs/biz/terminate_nfs.py index f921edd0..7cdea1c8 100644 --- a/lcm/ns_vnfs/biz/terminate_nfs.py +++ b/lcm/ns_vnfs/biz/terminate_nfs.py @@ -43,6 +43,11 @@ class TerminateVnfs(threading.Thread): self.vnfm_job_id = '' self.terminationType = data['terminationType'] self.gracefulTerminationTimeout = data['gracefulTerminationTimeout'] + if not self.gracefulTerminationTimeout: + self.gracefulTerminationTimeout = 120 + else: + self.gracefulTerminationTimeout = int(self.gracefulTerminationTimeout) + self.initdata() def run(self): |