yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #17099
[Bug 1258055] Re: Inappropriate exception for flavorRef
see discussion at https://review.openstack.org/#/c/60177/
** Changed in: nova
Status: In Progress => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1258055
Title:
Inappropriate exception for flavorRef
Status in OpenStack Compute (Nova):
Invalid
Bug description:
There is an Inappropriate exception for flavorRef in nova boot API
try:
flavor_id = self._flavor_id_from_req_data(body)
except ValueError as error:
msg = _("Invalid flavorRef provided.")
raise exc.HTTPBadRequest(explanation=msg)
I think it will be better for:
try:
flavor_id = self._flavor_id_from_req_data(body)
except ValueError as error:
raise exc.HTTPBadRequest(explanation=error.format_message())
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1258055/+subscriptions
References