Change-Id: I9f07f326e12942404d670004bb9463039967f954
Signed-off-by: Tibor Frank <tifrank@cisco.com>
def setup_vat_history(nodes):
duts_vat_history = {}
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)
DICT__duts_vat_history = setup_vat_history(DICT__nodes)