Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
df501ce
)
CSIT-560: csit src code doc generation for 1704
49/6249/1
author
Tibor Frank
<tifrank@cisco.com>
Tue, 18 Apr 2017 12:54:10 +0000
(14:54 +0200)
committer
Tibor Frank
<tifrank@cisco.com>
Wed, 19 Apr 2017 05:48:01 +0000
(
05:48
+0000)
Change-Id: I9f07f326e12942404d670004bb9463039967f954
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit
38ac6262bcd8dcf2d9a600188c7adb5989ff86b8
)
resources/libraries/python/VatHistory.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/VatHistory.py
b/resources/libraries/python/VatHistory.py
index
caa3de5
..
e46a737
100644
(file)
--- a/
resources/libraries/python/VatHistory.py
+++ b/
resources/libraries/python/VatHistory.py
@@
-22,10
+22,14
@@
__all__ = ["DICT__duts_vat_history", "VatHistory"]
def setup_vat_history(nodes):
duts_vat_history = {}
- for node in nodes.values():
- if node['type'] == NodeType.DUT:
- duts_vat_history[node['host']] = []
- return duts_vat_history
+ try:
+ for node in nodes.values():
+ if node['type'] == NodeType.DUT:
+ duts_vat_history[node['host']] = []
+ return duts_vat_history
+ except AttributeError:
+ # Necessary for the generation of source code documentation.
+ pass
DICT__duts_vat_history = setup_vat_history(DICT__nodes)