From 27ea796070e5d79a41f0ce2410b687ff6b83ffa1 Mon Sep 17 00:00:00 2001 From: Robert Latta <robert.latta@geant.org> Date: Wed, 7 Sep 2022 16:57:03 +0100 Subject: [PATCH] updated to only add contacts from Related Services --- inventory_provider/tasks/worker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py index fe8088f4..d5b22a0f 100644 --- a/inventory_provider/tasks/worker.py +++ b/inventory_provider/tasks/worker.py @@ -1039,7 +1039,10 @@ def transform_ims_data(data): circuits = port_id_services.get(details['port_id'], []) for circ in circuits: - contacts, pw_contacts = _get_circuit_contacts(circ) + # contacts, pw_contacts = _get_circuit_contacts(circ) + # we only want to include the Related Services contacts + contacts = set() + pw_contacts = set() circ['fibre-routes'] = [] for x in set(_get_fibre_routes(circ['id'])): c = { -- GitLab