fix bug while testing debug
This commit is contained in:
parent
f991ac85f7
commit
49731644fd
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Ethtool():
|
||||||
if status != 0:
|
if status != 0:
|
||||||
return {}
|
return {}
|
||||||
r = re.search(r'Identifier.*\((\w+)\)', output)
|
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]}
|
return {'form_factor': r.groups()[0]}
|
||||||
|
|
||||||
def parse(self):
|
def parse(self):
|
||||||
|
|
Loading…
Reference in a new issue