Fix encoding issue in mng.py sync_role_groups
This commit is contained in:
parent
387cee227a
commit
1cd201dc89
@ -918,7 +918,7 @@ def sync_role_groups(do_revoke_groups):
|
|||||||
grant_groups = groups.difference(current_groups)
|
grant_groups = groups.difference(current_groups)
|
||||||
revoke_groups = current_groups.difference(groups)
|
revoke_groups = current_groups.difference(groups)
|
||||||
|
|
||||||
print('Discrepancy for user %s/%s:' % (user['_id'], user['full_name']))
|
print('Discrepancy for user %s/%s:' % (user['_id'], user['full_name'].encode('utf8')))
|
||||||
print(' - actual groups :', sorted(gname(gid) for gid in user.get('groups')))
|
print(' - actual groups :', sorted(gname(gid) for gid in user.get('groups')))
|
||||||
print(' - expected groups:', sorted(gname(gid) for gid in groups))
|
print(' - expected groups:', sorted(gname(gid) for gid in groups))
|
||||||
print(' - will grant :', sorted(gname(gid) for gid in grant_groups))
|
print(' - will grant :', sorted(gname(gid) for gid in grant_groups))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user