From a3bda0b34f828ee16f577d1e3a59bf0dffe729b0 Mon Sep 17 00:00:00 2001 From: Dmitriy Zayakin Date: Thu, 11 Jan 2024 13:42:02 +0300 Subject: [PATCH] [#154] Change func search container Signed-off-by: Dmitriy Zayakin --- src/frostfs_testlib/steps/s3/s3_helper.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/frostfs_testlib/steps/s3/s3_helper.py b/src/frostfs_testlib/steps/s3/s3_helper.py index 68d5379..dbd3765 100644 --- a/src/frostfs_testlib/steps/s3/s3_helper.py +++ b/src/frostfs_testlib/steps/s3/s3_helper.py @@ -231,8 +231,10 @@ def search_nodes_with_bucket( shell: Shell, endpoint: str, ) -> list[ClusterNode]: - cid = search_container_by_name(name=bucket_name, cluster=cluster) - nodes_list = search_nodes_with_container( - wallet=wallet, cid=cid, shell=shell, endpoint=endpoint, cluster=cluster - ) + cid = None + for cluster_node in cluster.cluster_nodes: + cid = search_container_by_name(name=bucket_name, node=cluster_node) + if cid: + break + nodes_list = search_nodes_with_container(wallet=wallet, cid=cid, shell=shell, endpoint=endpoint, cluster=cluster) return nodes_list