Code Review
/
nfvbench.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f9be20d
)
Fix NFVBENCH-2 Cleanup after error causes a AttributeError exception
47/39147/1
author
ahothan
<ahothan@cisco.com>
Fri, 11 Aug 2017 16:12:21 +0000
(09:12 -0700)
committer
ahothan
<ahothan@cisco.com>
Fri, 11 Aug 2017 16:12:21 +0000
(09:12 -0700)
Change-Id: Ifd31ded84ae2ba077c7ee351c703b9bb6b31622f
Signed-off-by: ahothan <ahothan@cisco.com>
nfvbench/service_chain.py
patch
|
blob
|
history
diff --git
a/nfvbench/service_chain.py
b/nfvbench/service_chain.py
index
104cfb4
..
0a5fd13
100644
(file)
--- a/
nfvbench/service_chain.py
+++ b/
nfvbench/service_chain.py
@@
-134,5
+134,7
@@
class ServiceChain(object):
return self.stats_manager.get_version()
def close(self):
- self.stage_manager.close()
- self.stats_manager.close()
+ if self.stage_manager:
+ self.stage_manager.close()
+ if self.stats_manager:
+ self.stats_manager.close()