set version of nodes.json to 1
parent
ebde2fcba2
commit
c9098b1793
|
@ -61,6 +61,9 @@ def main(params):
|
||||||
if 'links' in nodedb:
|
if 'links' in nodedb:
|
||||||
nodedb = {'nodes': dict()}
|
nodedb = {'nodes': dict()}
|
||||||
|
|
||||||
|
# set version we're going to output
|
||||||
|
nodedb['version'] = 1
|
||||||
|
|
||||||
# update timestamp and assume all nodes are offline
|
# update timestamp and assume all nodes are offline
|
||||||
nodedb['timestamp'] = now.isoformat()
|
nodedb['timestamp'] = now.isoformat()
|
||||||
for node_id, node in nodedb['nodes'].items():
|
for node_id, node in nodedb['nodes'].items():
|
||||||
|
|
Loading…
Reference in New Issue