fix bug while testing debug

This commit is contained in:
Solvik Blum 2019-08-07 15:36:03 +02:00
parent f991ac85f7
commit 49731644fd
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47

View file

@ -61,7 +61,7 @@ class Ethtool():
if status != 0:
return {}
r = re.search(r'Identifier.*\((\w+)\)', output)
if r and r.groups() > 0:
if r and len(r.groups()) > 0:
return {'form_factor': r.groups()[0]}
def parse(self):