Skip to content
Snippets Groups Projects
Commit 2b888d44 authored by Martin Blanchard's avatar Martin Blanchard
Browse files

execution_service.py: Handle client not supporting multi-instances

parent 771b3b83
No related branches found
No related tags found
Loading
Pipeline #28858299 failed
......@@ -86,6 +86,11 @@ class ExecutionService(remote_execution_pb2_grpc.ExecutionServicer):
yield operations_pb2.Operation()
def _get_instance(self, name):
# If client does not support multiple instances, it may omit the
# instance name request parameter, so better map our default:
if not name and len(self._instances) == 1:
name = 'main'
try:
return self._instances[name]
......
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