Merge "revise error message for keystone.token.persistence pkg"

This commit is contained in:
Jenkins 2014-10-30 05:24:43 +00:00 committed by Gerrit Code Review
commit e6b048ef5f
1 changed files with 4 additions and 3 deletions

View File

@ -56,9 +56,10 @@ class Token(token.persistence.Driver):
# is instantiated.
LOG.warn(_('It is recommended to only use the base '
'key-value-store implementation for the token driver '
'for testing purposes. '
'Please use keystone.token.backends.memcache.Token '
'or keystone.token.backends.sql.Token instead.'))
'for testing purposes. Please use '
'keystone.token.persistence.backends.memcache.Token '
'or keystone.token.persistence.backends.sql.Token '
'instead.'))
def _prefix_token_id(self, token_id):
return 'token-%s' % token_id.encode('utf-8')