summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorMark Washenberger <mark.washenberger@rackspace.com>2011-03-04 17:04:41 -0500
committerMark Washenberger <mark.washenberger@rackspace.com>2011-03-04 17:04:41 -0500
commit10668b87f46a1fb5d039f6e7d7a7a55b89d7602a (patch)
tree1da35220603afb4523f65b18851e98bc4df06d76 /nova/api
parenta38e6c67c37a4d3336cf1dc3717fd5612a474183 (diff)
respond well if personality attribute is incomplete
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index 8b7b20b92..7c620dbc6 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -153,6 +153,9 @@ class Controller(wsgi.Controller):
try:
path = item['path']
contents = item['contents']
+ except KeyError, key:
+ expl = 'Bad personality format: missing %s' % key
+ raise exc.HTTPBadRequest(explanation=expl)
except TypeError:
raise exc.HTTPBadRequest(explanation='Bad personality format')
try: