From 9dc60252e7f90648fe372808e58ddf749413999a Mon Sep 17 00:00:00 2001 From: Alex Gittings Date: Wed, 18 Feb 2026 14:35:49 +0000 Subject: [PATCH] fix(slurpitsync): process interfaces synchronously instead of concurrently --- infrahub_sync/adapters/slurpitsync.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/infrahub_sync/adapters/slurpitsync.py b/infrahub_sync/adapters/slurpitsync.py index ae099be..c75341f 100644 --- a/infrahub_sync/adapters/slurpitsync.py +++ b/infrahub_sync/adapters/slurpitsync.py @@ -148,11 +148,8 @@ def normalize_and_find_prefix(entry): return entry - # Concurrent execution of tasks - tasks = [normalize_and_find_prefix(entry) for entry in interfaces if entry.get("IP")] - - # Run tasks concurrently - filtered_interfaces = await asyncio.gather(*tasks) + # Process interfaces synchronously (normalize_and_find_prefix is not async) + filtered_interfaces = [normalize_and_find_prefix(entry) for entry in interfaces if entry.get("IP")] results = [entry for entry in filtered_interfaces if entry]