forked from TrueCloudLab/frostfs-testlib
[#154] Change func search container
Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
This commit is contained in:
parent
a4d1082ed5
commit
a3bda0b34f
1 changed files with 6 additions and 4 deletions
|
@ -231,8 +231,10 @@ def search_nodes_with_bucket(
|
||||||
shell: Shell,
|
shell: Shell,
|
||||||
endpoint: str,
|
endpoint: str,
|
||||||
) -> list[ClusterNode]:
|
) -> list[ClusterNode]:
|
||||||
cid = search_container_by_name(name=bucket_name, cluster=cluster)
|
cid = None
|
||||||
nodes_list = search_nodes_with_container(
|
for cluster_node in cluster.cluster_nodes:
|
||||||
wallet=wallet, cid=cid, shell=shell, endpoint=endpoint, cluster=cluster
|
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
|
return nodes_list
|
||||||
|
|
Loading…
Reference in a new issue