Skip to content
Snippets Groups Projects
Commit ab26874a authored by Robert Latta's avatar Robert Latta
Browse files

Corrected building of hierarch for arent circuits

parent 419c0a24
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ def update_circuit_hierarchy():
r = get_redis(InventoryTask.config)
for key in r.scan_iter('opsdb:services:parents:*'):
r.delete(key)
for cid, parents in child_to_parents.items():
for cid, parents in parent_to_children.items():
r.set('opsdb:services:parents:%d' % cid, json.dumps(parents))
for key in r.scan_iter('opsdb:services:children:*'):
......
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