From dd0fc88230f836eb1588754110b53efd28db991e Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Fri, 30 Oct 2020 15:20:37 +0000
Subject: [PATCH] fixed typo

---
 inventory_provider/routes/classifier.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py
index b8e7c4c2..bdbec38c 100644
--- a/inventory_provider/routes/classifier.py
+++ b/inventory_provider/routes/classifier.py
@@ -56,7 +56,7 @@ def _locations_from_router(router_name):
 # todo - see if Erik is happy for this to
 #  just make a call to _location_from_router
 def _location_from_service_dict(s):
-    loc = _location_from_router(s['equipment'])
+    loc = _locations_from_router(s['equipment'])
     location = {
         'a': _LOCATION(
             equipment=loc['a']['equipment'],
@@ -64,7 +64,7 @@ def _location_from_service_dict(s):
             abbreviation=loc['a']['pop_abbreviation'])
     }
     if 'other_end_equipment' in s:
-        loc = _location_from_router(s['other_end_equipment'])
+        loc = _locations_from_router(s['other_end_equipment'])
         location['b'] = _LOCATION(
             equipment=loc['a']['equipment'],
             name=loc['a']['pop_name'],
-- 
GitLab