aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/VatHistory.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2017-04-18 14:54:10 +0200
committerPeter Mikus <pmikus@cisco.com>2017-04-19 05:47:39 +0000
commit38ac6262bcd8dcf2d9a600188c7adb5989ff86b8 (patch)
treedcc510b46f539de191560e7077e51ac6b1c7292b /resources/libraries/python/VatHistory.py
parent6a4018c9d8b356bc55af135d68803a08729d0ae1 (diff)
CSIT-560: csit src code doc generation for 1704
Change-Id: I9f07f326e12942404d670004bb9463039967f954 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/libraries/python/VatHistory.py')
-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)