Skip to content
Snippets Groups Projects
Commit 748869b6 authored by Erik Reid's avatar Erik Reid
Browse files

removed some todo comments (done)

parent 926dc92e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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