diff --git a/inventory_provider/db/ims_data.py b/inventory_provider/db/ims_data.py index 64687058b114e69ccc13e6424e16080b70014df9..9de1fc690cc941c4b5f9ad3e0998072fbc4827d3 100644 --- a/inventory_provider/db/ims_data.py +++ b/inventory_provider/db/ims_data.py @@ -227,13 +227,15 @@ def get_port_details(ds: IMS): vendor = None interface_name = None try: - vendor = p['node']['equipmentdefinition']['vendor']['name'].lower() + vendor = \ + p['node']['equipmentdefinition']['vendor']['name'].lower() except (TypeError, KeyError): pass # if there become more exceptions we will need to abstract this if vendor == 'infinera' and p.get('shelf', None): try: - interface_name = f"{p['shelf']['sequencenumber']}-{p['name']}" + interface_name = \ + f"{p['shelf']['sequencenumber']}-{p['name']}" except KeyError: pass @@ -252,7 +254,6 @@ def get_port_details(ds: IMS): 'internalport', internal_port_nav_props, step_count=2000), 'internal') - def get_circuit_hierarchy(ds: IMS): circuit_nav_props = [ ims.CIRCUIT_PROPERTIES['Customer'],