From a1cc8b4f80c97425b954f1de5d00360401afddd7 Mon Sep 17 00:00:00 2001 From: Robert Latta <robert.latta@geant.org> Date: Thu, 25 Mar 2021 09:33:10 +0000 Subject: [PATCH] flake8 --- inventory_provider/db/ims_data.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inventory_provider/db/ims_data.py b/inventory_provider/db/ims_data.py index 64687058..9de1fc69 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'], -- GitLab