Fix bad re.sub statement

This commit is contained in:
Adam Cecile 2016-11-17 10:30:24 +01:00
parent 8aeac49387
commit 8438855332
1 changed files with 1 additions and 1 deletions

View File

@ -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='?'):