tox8 line length fixes

This commit is contained in:
Thomas Davis 2020-01-20 15:27:23 -08:00
commit 62227a97cb
2 changed files with 7 additions and 3 deletions

View file

@ -63,7 +63,9 @@ class Ethtool():
return fields
def _parse_ethtool_module_output(self):
status, output = subprocess.getstatusoutput('sudo /usr/sbin/ethtool -m {}'.format(self.interface))
status, output = subprocess.getstatusoutput(
'sudo /usr/sbin/ethtool -m {}'.format(self.interface)
)
if status != 0:
return {}
r = re.search(r'Identifier.*\((\w+)\)', output)

View file

@ -86,8 +86,10 @@ class LSHW():
elif "nvme" in obj["configuration"]["driver"]:
nvme = json.loads(
subprocess.check_output(["sudo", "/usr/sbin/nvme", '-list', '-o', 'json'],
encoding='utf8')) # noqa: E128
subprocess.check_output(
["sudo", "/usr/sbin/nvme", '-list', '-o', 'json'],
encoding='utf8')
)
d = {}
d["vendor"] = obj["vendor"]