set version of nodes.json to 1

influxdb
Nils Schneider 2015-04-01 17:55:27 +02:00
parent ebde2fcba2
commit c9098b1793
1 changed files with 3 additions and 0 deletions

View File

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