aetherscale

[unmaintained] code for a cloud provider tutorial
Log | Files | Refs | README | LICENSE

commit 7faf1bf913caf85e037604987129b7d9ca2afde6
parent 9631daab5629640ac9eb5aebb1a6b33cf462675c
Author: Stefan Koch <programming@stefan-koch.name>
Date:   Sat,  6 Feb 2021 17:29:43 +0100

return 404 when VM doesn't exist

Diffstat:
Maetherscale/api/rest.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aetherscale/api/rest.py b/aetherscale/api/rest.py @@ -31,7 +31,7 @@ def vm_info(vm_id): try: result = list(handler.vm_info({'vm-id': vm_id}))[0] except RuntimeError: - return 'VM does not exist', 400 + return 'VM does not exist', 404 return flask.jsonify(result)