Merge "revise error message for keystone.token.persistence pkg"
This commit is contained in:
commit
e6b048ef5f
|
@ -56,9 +56,10 @@ class Token(token.persistence.Driver):
|
||||||
# is instantiated.
|
# is instantiated.
|
||||||
LOG.warn(_('It is recommended to only use the base '
|
LOG.warn(_('It is recommended to only use the base '
|
||||||
'key-value-store implementation for the token driver '
|
'key-value-store implementation for the token driver '
|
||||||
'for testing purposes. '
|
'for testing purposes. Please use '
|
||||||
'Please use keystone.token.backends.memcache.Token '
|
'keystone.token.persistence.backends.memcache.Token '
|
||||||
'or keystone.token.backends.sql.Token instead.'))
|
'or keystone.token.persistence.backends.sql.Token '
|
||||||
|
'instead.'))
|
||||||
|
|
||||||
def _prefix_token_id(self, token_id):
|
def _prefix_token_id(self, token_id):
|
||||||
return 'token-%s' % token_id.encode('utf-8')
|
return 'token-%s' % token_id.encode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue