Expose /virtualbox/vms /vmwares/vms and /images via controller

Ref #1192, #537
This commit is contained in:
Julien Duponchelle
2016-06-02 16:44:38 +02:00
parent fecd81655e
commit 917c1c7f84
4 changed files with 88 additions and 2 deletions

View File

@ -322,3 +322,11 @@ class Compute:
@asyncio.coroutine
def delete(self, path, **kwargs):
return (yield from self.http_query("DELETE", path, **kwargs))
@asyncio.coroutine
def forward(self, type, path):
"""
Forward a call to the emulator on compute
"""
res = yield from self.get("/{}/{}".format(type, path))
return res