diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py index b8e7c4c273523d30c9f555a1e6e8bce7e2e2a13f..bdbec38c5b98b9c738efafafcdb2303456f61a91 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'],