Merge pull request #262 from Solvik/fix/cle/hp-inventory-fix-3
fix: allow the inventory of several hp controller of the same model
This commit is contained in:
commit
9204ae2187
1 changed files with 3 additions and 2 deletions
|
@ -51,8 +51,9 @@ def _parse_ctrl_output(lines):
|
||||||
continue
|
continue
|
||||||
ctrl = REGEXP_CONTROLLER_HP.search(line)
|
ctrl = REGEXP_CONTROLLER_HP.search(line)
|
||||||
if ctrl is not None:
|
if ctrl is not None:
|
||||||
current_ctrl = ctrl.group(1)
|
slot = ctrl.group(2)
|
||||||
controllers[current_ctrl] = {'Slot': ctrl.group(2)}
|
current_ctrl = "{} - Slot {}".format(ctrl.group(1), slot)
|
||||||
|
controllers[current_ctrl] = {'Slot': slot}
|
||||||
if 'Embedded' not in line:
|
if 'Embedded' not in line:
|
||||||
controllers[current_ctrl]['External'] = True
|
controllers[current_ctrl]['External'] = True
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue