summaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
Diffstat (limited to 'testcases')
-rw-r--r--testcases/testcase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testcases/testcase.py b/testcases/testcase.py
index 18ad4240..55c940a4 100644
--- a/testcases/testcase.py
+++ b/testcases/testcase.py
@@ -679,7 +679,8 @@ class TestCase(object):
""" Stop all VNFs started by TestSteps
"""
for vnf in self._step_vnf_list:
- self._step_vnf_list[vnf].stop()
+ if self._step_vnf_list[vnf]:
+ self._step_vnf_list[vnf].stop()
@staticmethod
def step_eval_param(param, STEP):