From d3efc07402dbcaf4485ca059f15908d9d7fc1df1 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Sat, 23 Jan 2021 13:57:45 +0100
Subject: [PATCH] fixed incorrect key access

---
 inventory_provider/routes/classifier.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py
index 207deaf3..dd20f997 100644
--- a/inventory_provider/routes/classifier.py
+++ b/inventory_provider/routes/classifier.py
@@ -498,7 +498,7 @@ def peer_info(address):
         if ix_peering_info:
             result['ix-public-peer-info'] = ix_peering_info
             result['locations'] += _locations_from_router(
-                ix_peering_info['router'])
+                ix_peering_info['peer']['router'])
 
         vpn_rr_peering_info = _vpn_rr_peering_info(r, address)
         if vpn_rr_peering_info:
-- 
GitLab