Add exceptions messages for authentication
Fixes bug 1125137 Change-Id: Id79d11fb515a7af3b4e5cbe87bc717880fdb268b
This commit is contained in:
parent
5b9f1911dc
commit
2711af7ae3
@ -94,7 +94,7 @@ class Unauthorized(QuantumClientException):
|
||||
"""
|
||||
HTTP 401 - Unauthorized: bad credentials.
|
||||
"""
|
||||
pass
|
||||
message = _("Unauthorized: bad credentials.")
|
||||
|
||||
|
||||
class Forbidden(QuantumClientException):
|
||||
@ -102,12 +102,13 @@ class Forbidden(QuantumClientException):
|
||||
HTTP 403 - Forbidden: your credentials don't give you access to this
|
||||
resource.
|
||||
"""
|
||||
pass
|
||||
message = _("Forbidden: your credentials don't give you access to this "
|
||||
"resource.")
|
||||
|
||||
|
||||
class EndpointNotFound(QuantumClientException):
|
||||
"""Could not find Service or Region in Service Catalog."""
|
||||
pass
|
||||
message = _("Could not find Service or Region in Service Catalog.")
|
||||
|
||||
|
||||
class AmbiguousEndpoints(QuantumClientException):
|
||||
|
Loading…
x
Reference in New Issue
Block a user