1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

add ethtool parser tests

This commit is contained in:
Kelly Brazil
2024-03-01 13:52:45 -08:00
parent 5e88eb0c8b
commit abbd4820fd
8 changed files with 121 additions and 1 deletions

View File

@ -149,7 +149,7 @@ def _parse_default(data: str) -> JSONDictType:
raw_output['name'] = line.split()[2][:-1]
continue
data_line = line.replace('\t', ' ')
data_line = line.replace('\t', ' ')
if not data_line.startswith(' '): # 9 spaces
mode = ''