[#182] Refactoring old functions for FrostfsCli

Refactoring old functions for FrostfsCli

Signed-off-by: Mikhail Kadilov m.kadilov@yadro.com
This commit is contained in:
Mikhail Kadilov 2024-02-19 13:01:29 +03:00 committed by Andrey Berezin
parent 273f0d13a5
commit 3fc3eaadf3
5 changed files with 121 additions and 63 deletions

View file

@ -97,8 +97,6 @@ class ShardsWatcher:
response = shards_cli.list(
endpoint=self.storage_node.get_control_endpoint(),
wallet=self.storage_node.get_remote_wallet_path(),
wallet_password=self.storage_node.get_wallet_password(),
json_mode=True,
)
@ -110,9 +108,7 @@ class ShardsWatcher:
self.storage_node.host.get_cli_config("frostfs-cli").exec_path,
)
return shards_cli.set_mode(
self.storage_node.get_control_endpoint(),
self.storage_node.get_remote_wallet_path(),
self.storage_node.get_wallet_password(),
endpoint=self.storage_node.get_control_endpoint(),
mode=mode,
id=[shard_id],
clear_errors=clear_errors,