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

corrected key

parent 35633e42
No related branches found
No related tags found
No related merge requests found
......@@ -185,7 +185,7 @@ def get_port_details(ds: IMS):
except (TypeError, KeyError):
pass
# if there become more exceptions we will need to abstract this
if vendor == 'infinera' and p.get('shelfid', None):
if vendor == 'infinera' and p.get('shelf', None):
try:
interface_name = f"{p['shelf']['sequencenumber']}-{p['name']}"
except KeyError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment