Update shards list command #33

Merged
abereziny merged 1 commit from abereziny/frostfs-testlib:feature-update-shards-command into master 2023-06-01 08:24:35 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 584ba5f0d1 - Show all commits

View file

@ -118,7 +118,7 @@ class FrostfsCliShards(CliCommand):
wallet: str, wallet: str,
wallet_password: str, wallet_password: str,
address: Optional[str] = None, address: Optional[str] = None,
json_mode: bool = False, json: bool = False,
timeout: Optional[str] = None, timeout: Optional[str] = None,
) -> CommandResult: ) -> CommandResult:
""" """
@ -126,7 +126,7 @@ class FrostfsCliShards(CliCommand):
Args: Args:
address: Address of wallet account. address: Address of wallet account.
json_mode: Print shard info as a JSON array. json: Print shard info as a JSON array.
endpoint: Remote node address (as 'multiaddr' or '<host>:<port>'). endpoint: Remote node address (as 'multiaddr' or '<host>:<port>').
wallet: WIF (NEP-2) string or path to the wallet or binary key. wallet: WIF (NEP-2) string or path to the wallet or binary key.
wallet_password: Wallet password. wallet_password: Wallet password.

View file

@ -99,6 +99,7 @@ class ShardsWatcher:
endpoint=self.storage_node.get_control_endpoint(), endpoint=self.storage_node.get_control_endpoint(),
wallet=self.storage_node.get_remote_wallet_path(), wallet=self.storage_node.get_remote_wallet_path(),
wallet_password=self.storage_node.get_wallet_password(), wallet_password=self.storage_node.get_wallet_password(),
json=True,
) )
return json.loads(response.stdout.split(">", 1)[1]) return json.loads(response.stdout.split(">", 1)[1])