diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py index 704a76437fbd75b9d7dcb7c0e1521ad2e38be44e..8836e15aad1d7debd9a8bb70190cd1dc85cfe371 100644 --- a/inventory_provider/tasks/worker.py +++ b/inventory_provider/tasks/worker.py @@ -180,8 +180,8 @@ def update_interfaces_to_services(self): interface_services = defaultdict(list) with db.connection(InventoryTask.config["ops-db"]) as cx: for service in opsdb.get_circuits(cx): - equipment_interface = '%s:%s' % ( - service['equipment'], service['interface_name']) + equipment_interface \ + = f'{service["equipment"]}:{service["interface_name"]}' interface_services[equipment_interface].append(service) r = get_next_redis(InventoryTask.config)