Skip to content
Snippets Groups Projects
Commit a9f795d2 authored by BRONES Romain's avatar BRONES Romain
Browse files

[ContextSaver] Json top level is now a dict

And not an array anymore.
parent f7238886
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ if __name__ == "__main__": ...@@ -152,7 +152,7 @@ if __name__ == "__main__":
####################################################### #######################################################
# Prepare array for result # Prepare array for result
results = [] results = dict()
####################################################### #######################################################
# Scan all devices # Scan all devices
...@@ -171,13 +171,12 @@ if __name__ == "__main__": ...@@ -171,13 +171,12 @@ if __name__ == "__main__":
# Build json dict # Build json dict
jdict = { jdict = {
"tangopath":dev,
"wattributes":wattr, "wattributes":wattr,
"properties":props, "properties":props,
} }
# Add to results # Add to results
results.append(jdict) results[dev] = jdict
logger.info("Done") logger.info("Done")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment