Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and laxmikantchintakindi committed Jan 3, 2025
1 parent ec61ff3 commit 8d69da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-avd/pyavd/_eos_designs/eos_designs_facts/uplinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _get_p2p_uplink(self: EosDesignsFacts, uplink_index: int, uplink_interface:
if self.shared_utils.uplink_switch_interface_speed is not None:
uplink["peer_speed"] = self.shared_utils.uplink_switch_interface_speed

if (uplink_ptp:=self.shared_utils.node_config.uplink_ptp):
if uplink_ptp := self.shared_utils.node_config.uplink_ptp:
uplink["ptp"] = uplink_ptp._as_dict()
elif self.shared_utils.ptp_enabled and (not (ptp_uplinks := self.shared_utils.ptp_uplinks) or (ptp_uplinks and (uplink_interface in ptp_uplinks))):
uplink["ptp"] = {"enable": True}
Expand Down

0 comments on commit 8d69da1

Please sign in to comment.