Merge "fix unicode triggered failure in AuthManager"
This commit is contained in:
1
Authors
1
Authors
@@ -146,6 +146,7 @@ Rick Clark <rick@openstack.org>
|
|||||||
Rick Harris <rconradharris@gmail.com>
|
Rick Harris <rconradharris@gmail.com>
|
||||||
Rob Kost <kost@isi.edu>
|
Rob Kost <kost@isi.edu>
|
||||||
Russell Bryant <rbryant@redhat.com>
|
Russell Bryant <rbryant@redhat.com>
|
||||||
|
Russell Sim <russell.sim@gmail.com>
|
||||||
Ryan Lane <rlane@wikimedia.org>
|
Ryan Lane <rlane@wikimedia.org>
|
||||||
Ryan Lucio <rlucio@internap.com>
|
Ryan Lucio <rlucio@internap.com>
|
||||||
Ryu Ishimoto <ryu@midokura.jp>
|
Ryu Ishimoto <ryu@midokura.jp>
|
||||||
|
@@ -403,7 +403,7 @@ class AuthManager(object):
|
|||||||
key_parts = ['rolecache', User.safe_id(user), str(role)]
|
key_parts = ['rolecache', User.safe_id(user), str(role)]
|
||||||
if project:
|
if project:
|
||||||
key_parts.append(Project.safe_id(project))
|
key_parts.append(Project.safe_id(project))
|
||||||
return '-'.join(key_parts)
|
return utils.utf8('-'.join(key_parts))
|
||||||
|
|
||||||
def _clear_mc_key(self, user, role, project=None):
|
def _clear_mc_key(self, user, role, project=None):
|
||||||
# NOTE(anthony): it would be better to delete the key
|
# NOTE(anthony): it would be better to delete the key
|
||||||
|
Reference in New Issue
Block a user