Change message format of Forbidden

Not authorized is usually related to '401' HTTP exception
and we probably will create a new UnAuthorized exception in
https://review.openstack.org/#/c/312014/ with same message
so we can change this one to 'Forbidden'

Change-Id: I83c032efeae8d353c6c215a00b814e303560da80
This commit is contained in:
jichenjc 2016-05-01 07:00:36 +08:00
parent 0f8b89c6bf
commit 35903eb34f
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class CinderConnectionFailed(NovaException):
class Forbidden(NovaException):
ec2_code = 'AuthFailure'
msg_fmt = _("Not authorized.")
msg_fmt = _("Forbidden")
code = 403