[#125] Fix recursion issue

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2024-02-15 16:40:18 +03:00
parent d1578a728f
commit adacef19bb

View file

@ -10,9 +10,9 @@ def create_container(endpoint, policy, wallet_path, config, acl, local=False, de
if config: if config:
wallet_config = f"--config {config}" wallet_config = f"--config {config}"
if acl: if acl:
acl = f"--basic-acl {acl}" acl_param = f"--basic-acl {acl}"
cmd_line = f"frostfs-cli --rpc-endpoint {endpoint} container create {wallet_file} {wallet_config} " \ cmd_line = f"frostfs-cli --rpc-endpoint {endpoint} container create {wallet_file} {wallet_config} " \
f" --policy '{policy}' {acl} --await" f" --policy '{policy}' {acl_param} --await"
output, success = execute_cmd(cmd_line) output, success = execute_cmd(cmd_line)