Merge "Fix boot with image not active"

This commit is contained in:
Jenkins 2013-01-30 20:27:34 +00:00 committed by Gerrit Code Review
commit b5d242b209
1 changed files with 2 additions and 0 deletions

View File

@ -911,6 +911,8 @@ class Controller(wsgi.Controller):
except exception.ImageNotFound as error:
msg = _("Can not find requested image")
raise exc.HTTPBadRequest(explanation=msg)
except exception.ImageNotActive as error:
raise exc.HTTPBadRequest(explanation=unicode(error))
except exception.FlavorNotFound as error:
msg = _("Invalid flavorRef provided.")
raise exc.HTTPBadRequest(explanation=msg)