fix: crash when ethtool advertised modes in unknown format
Resolves: #689715 (RHEL)
This commit is contained in:
parent
08da2b82be
commit
ac079d8f40
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ class Nettool:
|
|||
self.advertised_modes.append( (int(s), d == "Full") )
|
||||
del m,s,d
|
||||
except:
|
||||
self.advertised_modes.append(1000, True)
|
||||
self.advertised_modes.append((1000, True))
|
||||
|
||||
elif state == "advertised_autoneg":
|
||||
self.advertised_autoneg = line == "Yes"
|
||||
|
|
|
|||
Loading…
Reference in a new issue