Skip to content
Snippets Groups Projects
Commit 771438b1 authored by Robert Latta's avatar Robert Latta
Browse files

non-functional change

parent dd0fc882
Branches
Tags
No related merge requests found
......@@ -26,6 +26,7 @@ def update_interfaces_to_services_ims():
ims_worker.update_interfaces_to_services_ims.delay(use_current=True)
return Response('OK')
@routes.route("update-circuit-hierarchy-ims", methods=['GET', 'POST'])
def update_circuit_hierarchy_ims():
ims_worker.update_circuit_hierarchy_ims.delay(use_current=True)
......
......@@ -32,11 +32,10 @@ def update_interfaces_to_services_ims(self, use_current=False):
ds = IMS(c['api'], c['username'], c['password'])
for service in ims_data.get_interface_services(ds):
equipment_interface = '%s:%s' % (
service['equipment'], service['interface_name'])
equipment_interface = \
f'{service["equipment"]}:{service["interface_name"]}'
interface_services[equipment_interface].append(service)
if use_current:
r = get_current_redis(InventoryTask.config)
# scan with bigger batches, to mitigate network latency effects
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment