From 26d11266a1dff19ff5f6ee14026484c170cb8cd4 Mon Sep 17 00:00:00 2001 From: Robert Latta <robert.latta@geant.org> Date: Fri, 12 Mar 2021 09:12:19 +0000 Subject: [PATCH] corrrected typo and renamed functions --- inventory_provider/routes/testing.py | 4 ++-- inventory_provider/tasks/worker.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inventory_provider/routes/testing.py b/inventory_provider/routes/testing.py index 4eb2e004..0bb10a10 100644 --- a/inventory_provider/routes/testing.py +++ b/inventory_provider/routes/testing.py @@ -22,8 +22,8 @@ def flushdb(): @routes.route("update-interfaces-to-services", methods=['GET', 'POST']) -def update_interfaces_to_services_ims_route(): - worker.update_interfaces_to_services_ims.delay(use_current=True) +def update_interfaces_to_services_route(): + worker.update_interfaces_to_services.delay(use_current=True) return Response('OK') diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py index a4bbf76a..899639c7 100644 --- a/inventory_provider/tasks/worker.py +++ b/inventory_provider/tasks/worker.py @@ -453,7 +453,7 @@ def internal_refresh_phase_2(self): subtasks = [ update_circuit_hierarchy.apply_async(), - update_interfaces_to_services_ims.apply_asynch(), + update_interfaces_to_services.apply_async(), import_unmanaged_interfaces.apply_async() ] @@ -505,7 +505,7 @@ def update_fibre_spans(self, use_current=False): @app.task( base=InventoryTask, bind=True, name='update_interfaces_to_services_ims') @log_task_entry_and_exit -def update_interfaces_to_services_ims(self, use_current=False): +def update_interfaces_to_services(self, use_current=False): port_id_services = defaultdict(list) c = InventoryTask.config["ims"] -- GitLab