diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py index ccf9edb74243917f7cda57d254e29950cb64379d..522cb29947656e20b8c0a773e90beed05ce55461 100644 --- a/inventory_provider/tasks/worker.py +++ b/inventory_provider/tasks/worker.py @@ -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:*'):