From be8cbcfe4308e36b3c549711ed98cfece4f85300 Mon Sep 17 00:00:00 2001 From: Piotr Debski Date: Tue, 5 Jul 2022 13:40:31 +0200 Subject: [PATCH] API fix obligatory parameter in core try add - (core id) Signed-off-by: Piotr Debski --- test/functional/api/cas/casadm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/api/cas/casadm.py b/test/functional/api/cas/casadm.py index dfce8ab..cc95a3b 100644 --- a/test/functional/api/cas/casadm.py +++ b/test/functional/api/cas/casadm.py @@ -133,9 +133,9 @@ def remove_detached(core_device: Device, shortcut: bool = False): 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, - str(core_id) if core_id is not None else None)) + str(core_id))) if output.exit_code != 0: raise CmdException("Failed to execute try add script command.", output) return Core(core_device.path, cache_id)