From 748869b6f0c0d3a7b29a727fb570e3a54339bb34 Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Sat, 2 Feb 2019 08:17:31 +0100 Subject: [PATCH] removed some todo comments (done) --- inventory_provider/tasks/worker.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py index e01e15f9..87b41bd4 100644 --- a/inventory_provider/tasks/worker.py +++ b/inventory_provider/tasks/worker.py @@ -142,7 +142,6 @@ def netconf_refresh_config(self, hostname): @app.task() def update_interfaces_to_services(): - # todo - factor this connection stuff out r = get_redis(InventoryTask.config) with db.connection(InventoryTask.config["ops-db"]) as cx: services = opsdb.get_circuits(cx) @@ -170,7 +169,6 @@ def update_interfaces_to_services(): @app.task() def update_equipment_locations(): - # todo - factor this connection stuff out r = get_redis(InventoryTask.config) r.delete(equipment_locations_key) @@ -182,7 +180,6 @@ def update_equipment_locations(): @app.task() def update_circuit_hierarchy(): - # todo - factor this connection stuff out r = get_redis(InventoryTask.config) children_to_parents = defaultdict(list) parents_to_children = defaultdict(list) @@ -206,7 +203,6 @@ def update_circuit_hierarchy(): @app.task() def update_interface_statuses(): - # todo - factor this connection stuff out r = get_redis(InventoryTask.config) with db.connection(InventoryTask.config["ops-db"]) as cx: services = opsdb.get_circuits(cx) -- GitLab