Skip to content

Commit

Permalink
Merge pull request #477 from rackerlabs/fix-lldp-missing-crash
Browse files Browse the repository at this point in the history
fix: enrollment crash when LLDP info is missing
  • Loading branch information
cardoe authored Nov 13, 2024
2 parents e9c538c + 5bfeb8f commit 574abe5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def interface_data(bmc: Bmc) -> list[InterfaceInfo]:
def combine_lldp(lldp, interface) -> InterfaceInfo:
name = interface["name"]
alternate_name = f"{name}-1"
lldp_entry = lldp.get(name, lldp.get(alternate_name))
lldp_entry = lldp.get(name, lldp.get(alternate_name, {}))
if not lldp_entry:
logger.info(
f"LLDP info from BMC is missing for {name} or {alternate_name}, "
Expand Down

0 comments on commit 574abe5

Please sign in to comment.