Skip to content

Commit

Permalink
infamy: Stability fix for getting OSPF status
Browse files Browse the repository at this point in the history
Return {} instead of [] to remove crash if no ospf exist (yet)
  • Loading branch information
mattiaswal committed Nov 13, 2024
1 parent c3bed2b commit 7d813ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/infamy/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _get_ospf_status(target):
if p["type"] == "infix-routing:ospfv2":
return p.get("ospf") or p.get("ietf-ospf:ospf")

return []
return {}


def _get_ospf_status_area(target, area_id):
Expand Down

0 comments on commit 7d813ce

Please sign in to comment.