summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-23 18:03:03 +0000
committerGerrit Code Review <review@openstack.org>2013-01-23 18:03:03 +0000
commit9159e3be63b45aedaab83d5e92149779e4823807 (patch)
treebab64e9dbc7a5604afba38f626c8c2925a250a3b /nova/api
parent5fe9954952cd32b6746b0754ab1ca2401e7a2491 (diff)
parente34d5d9e3d416fc40f147a5914f7dceee26f5ba4 (diff)
Merge "Add Compute API validations for block device map"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/servers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py
index f7f186870..93a07ec3f 100644
--- a/nova/api/openstack/compute/servers.py
+++ b/nova/api/openstack/compute/servers.py
@@ -906,6 +906,8 @@ class Controller(wsgi.Controller):
raise exc.HTTPBadRequest(explanation=unicode(error))
except exception.InvalidMetadataSize as error:
raise exc.HTTPRequestEntityTooLarge(explanation=unicode(error))
+ except exception.InvalidRequest as error:
+ raise exc.HTTPBadRequest(explanation=unicode(error))
except exception.ImageNotFound as error:
msg = _("Can not find requested image")
raise exc.HTTPBadRequest(explanation=msg)