mirror of https://github.com/eLvErDe/hwraid.git
Fix bad re.sub statement
This commit is contained in:
parent
8aeac49387
commit
8438855332
|
@ -65,7 +65,7 @@ def returnArrayIds(output):
|
||||||
ids = []
|
ids = []
|
||||||
for line in output:
|
for line in output:
|
||||||
if re.match(r'^Logical [Dd]evice number [0-9]+$',line.strip()):
|
if re.match(r'^Logical [Dd]evice number [0-9]+$',line.strip()):
|
||||||
ids.append(re.sub(r'^Logical [Dd]evice number', line).strip())
|
ids.append(re.sub(r'^Logical [Dd]evice number', '', line).strip())
|
||||||
return ids
|
return ids
|
||||||
|
|
||||||
def returnArrayInfo(output, ctrl_id='?'):
|
def returnArrayInfo(output, ctrl_id='?'):
|
||||||
|
|
Loading…
Reference in New Issue