From fcfd1c6e016883adb7ea92dab119b247ee5bce2f Mon Sep 17 00:00:00 2001 From: fujinhua Date: Tue, 13 Nov 2018 13:41:08 +0800 Subject: Fix ns term logic Change-Id: Id59ff11a70bcc8e39d418eda038c09683a64fcde Issue-ID: VFC-1163 Signed-off-by: fujinhua --- lcm/ns_vnfs/biz/terminate_nfs.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- cgit 1.2.3-korg