From aaa98de536cb1b9d6ab5a18341a56543b5b57ce1 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 6 May 2023 15:12:41 +0200 Subject: ethernet: T3891: fix always true expression on auto-negotiation Commit f2ecc9710d49 ("ethernet: T3891: honor auto-negotiation support per NIC") added an if statement that always evaluated to True. --- python/vyos/ethtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/vyos/ethtool.py') diff --git a/python/vyos/ethtool.py b/python/vyos/ethtool.py index 9d016e5cc..1b1e54dfb 100644 --- a/python/vyos/ethtool.py +++ b/python/vyos/ethtool.py @@ -81,7 +81,7 @@ class Ethtool: self._speed_duplex.update({ speed : {}}) if duplex not in self._speed_duplex[speed]: self._speed_duplex[speed].update({ duplex : ''}) - if 'Supports auto-negotiation:': + if 'Supports auto-negotiation:' in line: # Split the following string: Auto-negotiation: off # we are only interested in off or on tmp = line.split()[-1] -- cgit v1.2.3