Merge pull request #119 from coreos-inc/stringfix

Parenthesis fix on the JWT auth error message
This commit is contained in:
Jimmy Zelinskie 2015-06-10 16:04:53 -04:00
commit 038e0972ac

View file

@ -331,8 +331,8 @@ def _validate_jwt(config):
username = get_authenticated_user().username username = get_authenticated_user().username
result = users.user_exists(username) result = users.user_exists(username)
if not result: if not result:
raise Exception('Verification of superuser %s failed. The user either does not exist ' + raise Exception(('Verification of superuser %s failed. The user either does not exist ' +
'in the remote authentication system OR JWT auth is misconfigured.' % username) 'in the remote authentication system OR JWT auth is misconfigured.') % username)
_VALIDATORS = { _VALIDATORS = {