Skip to content

Commit

Permalink
Merge pull request autotest#5537 from QianJianhua1/rx-frames
Browse files Browse the repository at this point in the history
virtual_networks: remove spaces before comparing rx_frames
  • Loading branch information
dzhengfy authored May 10, 2024
2 parents 831038e + c3fd526 commit ae00d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/virtual_network/network_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def get_ethtool_coalesce(iface):
eth_out = re.sub("[\t ]+", "", eth_out)
eth_out = re.sub("n/a", "0", eth_out)
items = [x.split(':') for x in eth_out.splitlines() if x]
coalesce = {item[0]: item[1] for item in items[1:] if len(item) == 2}
coalesce = {item[0]: item[1].strip() for item in items[1:] if len(item) == 2}

return coalesce

Expand Down

0 comments on commit ae00d05

Please sign in to comment.