Skip to content
Snippets Groups Projects
Commit 162e99ba authored by Erik Reid's avatar Erik Reid
Browse files

use f-string

parent 8aa4c042
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment