From 987e7f2a3062d9f5e6acb2ef2617c177b8a0d9a6 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Fri, 2 Jun 2023 13:03:28 +0300 Subject: [PATCH] Revert "Update shards list command" This reverts commit 584ba5f0d1bc9b00ffffc3c93f2ad7a7089b5304. --- src/frostfs_testlib/cli/frostfs_cli/shards.py | 4 ++-- src/frostfs_testlib/storage/controllers/shards_watcher.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frostfs_testlib/cli/frostfs_cli/shards.py b/src/frostfs_testlib/cli/frostfs_cli/shards.py index ffa0652..6b47ac2 100644 --- a/src/frostfs_testlib/cli/frostfs_cli/shards.py +++ b/src/frostfs_testlib/cli/frostfs_cli/shards.py @@ -118,7 +118,7 @@ class FrostfsCliShards(CliCommand): wallet: str, wallet_password: str, address: Optional[str] = None, - json: bool = False, + json_mode: bool = False, timeout: Optional[str] = None, ) -> CommandResult: """ @@ -126,7 +126,7 @@ class FrostfsCliShards(CliCommand): Args: address: Address of wallet account. - json: Print shard info as a JSON array. + json_mode: Print shard info as a JSON array. endpoint: Remote node address (as 'multiaddr' or ':'). wallet: WIF (NEP-2) string or path to the wallet or binary key. wallet_password: Wallet password. diff --git a/src/frostfs_testlib/storage/controllers/shards_watcher.py b/src/frostfs_testlib/storage/controllers/shards_watcher.py index bd7c8cd..6607824 100644 --- a/src/frostfs_testlib/storage/controllers/shards_watcher.py +++ b/src/frostfs_testlib/storage/controllers/shards_watcher.py @@ -99,7 +99,6 @@ class ShardsWatcher: endpoint=self.storage_node.get_control_endpoint(), wallet=self.storage_node.get_remote_wallet_path(), wallet_password=self.storage_node.get_wallet_password(), - json=True, ) return json.loads(response.stdout.split(">", 1)[1])