From dbc5159426fd653df44517d27b6a2d1a3160b56d Mon Sep 17 00:00:00 2001 From: Piotr Debski Date: Wed, 20 Apr 2022 17:45:09 +0200 Subject: [PATCH] fix cli command api for set parameter promotion-nhit Signed-off-by: Piotr Debski --- test/functional/api/cas/cli.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/functional/api/cas/cli.py b/test/functional/api/cas/cli.py index afd0bcd..106a7ca 100644 --- a/test/functional/api/cas/cli.py +++ b/test/functional/api/cas/cli.py @@ -282,11 +282,13 @@ def set_param_promotion_cmd(cache_id: str, policy: str, shortcut: bool = False): def set_param_promotion_nhit_cmd( cache_id: str, threshold=None, trigger=None, shortcut: bool = False ): - add_param = "" + add_params = "" if threshold is not None: - add_param += (" -t " if shortcut else " --threshold ") + str(threshold) + add_params += (" -t " if shortcut else " --threshold ") + str(threshold) if trigger is not None: - add_param += (" -o " if shortcut else " --trigger ") + str(trigger) + add_params += (" -o " if shortcut else " --trigger ") + str(trigger) + return _set_param_cmd(namespace="promotion-nhit", cache_id=cache_id, + additional_params=add_params, shortcut=shortcut) def set_param_cleaning_cmd(cache_id: str, policy: str, shortcut: bool = False):