Update and delete VM on controller

This commit is contained in:
Julien Duponchelle
2016-04-18 17:36:38 +02:00
parent 97aea5f82a
commit d7ed37ce02
5 changed files with 156 additions and 11 deletions

View File

@ -203,6 +203,11 @@ class Compute:
response = yield from self.httpQuery("POST", path, data)
return response
@asyncio.coroutine
def put(self, path, data={}):
response = yield from self.httpQuery("PUT", path, data)
return response
@asyncio.coroutine
def delete(self, path):
return (yield from self.httpQuery("DELETE", path))