From 1cd201dc89de9571f6b9153baef0adc2676cbfdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 30 Jun 2016 17:48:13 +0200 Subject: [PATCH] Fix encoding issue in mng.py sync_role_groups --- pillar/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/manage.py b/pillar/manage.py index 481ebc76..6153c148 100755 --- a/pillar/manage.py +++ b/pillar/manage.py @@ -918,7 +918,7 @@ def sync_role_groups(do_revoke_groups): grant_groups = groups.difference(current_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(' - expected groups:', sorted(gname(gid) for gid in groups)) print(' - will grant :', sorted(gname(gid) for gid in grant_groups))