Merge "Override support message in AuthorizationFailure class"

This commit is contained in:
Zuul 2018-02-24 02:50:33 +00:00 committed by Gerrit Code Review
commit 80bfea8b3b
1 changed files with 3 additions and 2 deletions

View File

@ -135,8 +135,9 @@ class Auth(BaseAuth):
if sum(mutual_exclusion) > 1:
raise exceptions.AuthorizationFailure(
'Authentication cannot be scoped to multiple targets. Pick '
'one of: project, domain, trust or unscoped')
message='Authentication cannot be scoped to multiple'
' targets. Pick one of: project, domain, '
'trust or unscoped')
if self.domain_id:
body['auth']['scope'] = {'domain': {'id': self.domain_id}}