1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: ethtool: fix indentation error for link-fec attr

Signed-off-by: Anton Lindström <carlantonlindstrom@gmail.com>
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Anton Lindström
2018-09-09 19:28:31 +02:00
committed by Julien Fortin
parent a0ab870e46
commit 6092d5450a

View File

@@ -296,7 +296,7 @@ class ethtool(moduleBase,utilsBase):
for attr in ethtool_output.splitlines():
if attr.startswith('FEC encodings'):
fec_attrs = attr.split()
return(fec_attrs[fec_attrs.index(':')+1])
return(fec_attrs[fec_attrs.index(':')+1])
except Exception as e:
self.logger.debug('ethtool: problems in ethtool set-fec output'
' %s: %s' %(ethtool_output.splitlines(), str(e)))