aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2017-04-18 14:54:10 +0200
committerTibor Frank <tifrank@cisco.com>2017-04-19 05:48:01 +0000
commita2301408b33364c9f514a69a002fec19d7973943 (patch)
treec42a48a0557386f925c474c3b357b3e8af4c9626
parentdf501ce39de081429bba55c28f77e569926f82d7 (diff)
CSIT-560: csit src code doc generation for 1704
Change-Id: I9f07f326e12942404d670004bb9463039967f954 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 38ac6262bcd8dcf2d9a600188c7adb5989ff86b8)
-rw-r--r--resources/libraries/python/VatHistory.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/resources/libraries/python/VatHistory.py b/resources/libraries/python/VatHistory.py
index caa3de50f2..e46a73771f 100644
--- 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)