From b6ab9ecc22c658f3e2f8a7278b25dabce794633d Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Thu, 11 Mar 2021 17:22:06 +0000
Subject: [PATCH] changed function names

---
 inventory_provider/routes/testing.py | 4 ++--
 inventory_provider/tasks/worker.py   | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/inventory_provider/routes/testing.py b/inventory_provider/routes/testing.py
index d6142eab..4eb2e004 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():
-    worker.update_interfaces_to_services.delay(use_current=True)
+def update_interfaces_to_services_ims_route():
+    worker.update_interfaces_to_services_ims.delay(use_current=True)
     return Response('OK')
 
 
diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py
index caf86d95..a4bbf76a 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.apply_asynch(),
+            update_interfaces_to_services_ims.apply_asynch(),
             import_unmanaged_interfaces.apply_async()
         ]
 
@@ -503,9 +503,9 @@ def update_fibre_spans(self, use_current=False):
 
 
 @app.task(
-    base=InventoryTask, bind=True, name='update_interfaces_to_services')
+    base=InventoryTask, bind=True, name='update_interfaces_to_services_ims')
 @log_task_entry_and_exit
-def update_interfaces_to_services(self, use_current=False):
+def update_interfaces_to_services_ims(self, use_current=False):
     port_id_services = defaultdict(list)
 
     c = InventoryTask.config["ims"]
-- 
GitLab