API fix obligatory parameter in core try add - (core id)

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
This commit is contained in:
Piotr Debski 2022-07-05 13:40:31 +02:00
parent e3dec000df
commit be8cbcfe43

View File

@ -133,9 +133,9 @@ def remove_detached(core_device: Device, shortcut: bool = False):
return output return output
def try_add(core_device: Device, cache_id: int, core_id: int = None): def try_add(core_device: Device, cache_id: int, core_id: int):
output = TestRun.executor.run(script_try_add_cmd(str(cache_id), core_device.path, output = TestRun.executor.run(script_try_add_cmd(str(cache_id), core_device.path,
str(core_id) if core_id is not None else None)) str(core_id)))
if output.exit_code != 0: if output.exit_code != 0:
raise CmdException("Failed to execute try add script command.", output) raise CmdException("Failed to execute try add script command.", output)
return Core(core_device.path, cache_id) return Core(core_device.path, cache_id)