forked from TrueCloudLab/frostfs-testcases
Fix: IndexError: list index out of range
Signed-off-by: Vladislav Karakozov <v.karakozov@yadro.com>
This commit is contained in:
parent
422636f68b
commit
1dc4516258
1 changed files with 3 additions and 3 deletions
|
@ -286,10 +286,10 @@ def get_object_and_verify_hashes(
|
||||||
nodes=nodes,
|
nodes=nodes,
|
||||||
)
|
)
|
||||||
# for some reason we can face with case when nodes_list is empty due to object resides in all nodes
|
# for some reason we can face with case when nodes_list is empty due to object resides in all nodes
|
||||||
if nodes_list is None:
|
if nodes_list:
|
||||||
random_node = random.choice(nodes)
|
|
||||||
else:
|
|
||||||
random_node = random.choice(nodes_list)
|
random_node = random.choice(nodes_list)
|
||||||
|
else:
|
||||||
|
random_node = random.choice(nodes)
|
||||||
|
|
||||||
object_getter = object_getter or get_via_http_gate
|
object_getter = object_getter or get_via_http_gate
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue