diff options
author | Tibor Frank <tifrank@cisco.com> | 2017-04-18 14:54:10 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2017-04-19 05:47:39 +0000 |
commit | 38ac6262bcd8dcf2d9a600188c7adb5989ff86b8 (patch) | |
tree | dcc510b46f539de191560e7077e51ac6b1c7292b | |
parent | 6a4018c9d8b356bc55af135d68803a08729d0ae1 (diff) |
CSIT-560: csit src code doc generation for 1704
Change-Id: I9f07f326e12942404d670004bb9463039967f954
Signed-off-by: Tibor Frank <tifrank@cisco.com>
-rw-r--r-- | resources/libraries/python/VatHistory.py | 12 |
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) |