From 4b97805e228468b3521960052a45ee62705b8b4a Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Mon, 28 Feb 2022 10:18:04 +0000
Subject: [PATCH] corrected dict key. RE POL1-565

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

diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py
index 066177bd..c248f81f 100644
--- a/inventory_provider/tasks/worker.py
+++ b/inventory_provider/tasks/worker.py
@@ -946,7 +946,7 @@ def transform_ims_data(data):
         s['monitored'] = True
         if s['circuit_type'] == 'service' \
                 and s['id'] not in circuit_ids_to_monitor:
-            s['monitored_in_nms'] = False
+            s['monitored'] = False
             s['status'] = 'non-monitored'
         pd_a = port_id_details[s['port_a_id']][0]
         location_a = locations.get(pd_a['equipment_name'], None)
-- 
GitLab