Merge branch '2.0' into 2.1

This commit is contained in:
Julien Duponchelle committed 2017-05-31 16:58:31 +02:00
commit 93adef91d8
19 files changed
+218 -21

No files matched your search

+3 -1
View File
@@ -580,8 +580,10 @@ class Compute:
Forward a call to the emulator on compute
"""
try:
res = yield from self.http_query(method, "/{}/{}".format(type, path), data=data, timeout=None)
action = "/{}/{}".format(type, path)
res = yield from self.http_query(method, action, data=data, timeout=None)
except aiohttp.ServerDisconnectedError:
log.error("Connection lost to %s during %s %s", self._id, method, action)
raise aiohttp.web.HTTPGatewayTimeout()
return res.json