summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorChris Yeoh <cyeoh@au1.ibm.com>2013-04-16 23:01:26 +0930
committerChris Yeoh <cyeoh@au1.ibm.com>2013-05-01 10:45:29 +0930
commit09c7fc3b694ab401d42c9e59b17e24bbe4383588 (patch)
tree08d63c0846c1d8e2521a8ad237534b4b4a28baf7 /nova/utils.py
parent36b10384724fec9657784980cd2bd38e72b445bc (diff)
downloadnova-09c7fc3b694ab401d42c9e59b17e24bbe4383588.tar.gz
nova-09c7fc3b694ab401d42c9e59b17e24bbe4383588.tar.xz
nova-09c7fc3b694ab401d42c9e59b17e24bbe4383588.zip
Catch glance image create exceptions
Catch exception from glance when image creation fails because the requested name is too long. Currently the exception is not caught in the api which results in an 400 Bad Request correctly being returned, but also leaving a traceback in the logs. Correctly catching the exception and explicitly raising an HTTPBadRequest removes the production of the traceback. Fixes bug #1169560 Change-Id: I511da79cb0b1b4578bf43f0819b2ac64fb6e5fb3
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions