Skip to content
Snippets Groups Projects
Commit 97b330db authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] fix missing endpoint info with random_offline node

parent 248571b7
No related branches found
No related tags found
1 merge request!7750.50.0
...@@ -225,9 +225,21 @@ class BmaConnector: ...@@ -225,9 +225,21 @@ class BmaConnector:
) )
) )
if random_offline_node: if random_offline_node:
node = random_offline_node[0]
endpoints = filter_endpoints(request, [node])
if not endpoints:
continue
endpoint = random.choice(endpoints)
self._logger.debug(
"Requesting {0} on endpoint {1}".format(
str(request.__name__), str(endpoint)
)
)
# create client
_client = client.Client(endpoint, session, proxy=self._user_parameters.proxy())
futures.append( futures.append(
self._verified_request( self._verified_request(
random_offline_node[0], node,
_client(request, **req_args) _client(request, **req_args)
) )
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment