Martin Blanchard pushed to branch mablanch/61-bazel-support at BuildGrid / buildgrid
Commits:
-
1e961171
by Martin Blanchard at 2018-08-31T10:08:39Z
1 changed file:
Changes:
| ... | ... | @@ -86,6 +86,11 @@ class ExecutionService(remote_execution_pb2_grpc.ExecutionServicer): |
| 86 | 86 |
yield operations_pb2.Operation()
|
| 87 | 87 |
|
| 88 | 88 |
def _get_instance(self, name):
|
| 89 |
+ # If client does not support multiple instances, it may omit the
|
|
| 90 |
+ # instance name request parameter, so better map our default:
|
|
| 91 |
+ if not name and len(self._instances) == 1:
|
|
| 92 |
+ name = next(iter(self._instances))
|
|
| 93 |
+ |
|
| 89 | 94 |
try:
|
| 90 | 95 |
return self._instances[name]
|
| 91 | 96 |
|
