Suspend for VPCS == stop

Fix #1465
This commit is contained in:
Julien Duponchelle
2016-09-05 16:55:38 +02:00
parent 1d70a18b11
commit 6e7f6a94ec
2 changed files with 20 additions and 1 deletions

View File

@ -452,7 +452,7 @@ class Compute:
elif response.status == 403:
raise aiohttp.web.HTTPForbidden(text=msg)
elif response.status == 404:
raise aiohttp.web.HTTPNotFound(text=msg)
raise aiohttp.web.HTTPNotFound(text="{} {} not found".format(method, path))
elif response.status == 409:
try:
raise ComputeConflict(json.loads(body))