6ec482
From 56b3c4cf7cab07410e026ce695667a2aa0c4ce2d Mon Sep 17 00:00:00 2001
6ec482
From: Alexander Bokovoy <abokovoy@redhat.com>
6ec482
Date: Fri, 23 Aug 2019 11:49:53 +0300
6ec482
Subject: [PATCH] Use unicode strings for Python 2 version
6ec482
6ec482
Related: https://pagure.io/freeipa/issue/6951
6ec482
---
6ec482
 ipaserver/install/adtrustinstance.py | 2 +-
6ec482
 1 file changed, 1 insertion(+), 1 deletion(-)
6ec482
6ec482
diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py
6ec482
index 804a04530..67dadf9b9 100644
6ec482
--- a/ipaserver/install/adtrustinstance.py
6ec482
+++ b/ipaserver/install/adtrustinstance.py
6ec482
@@ -131,7 +131,7 @@ def map_Guests_to_nobody():
6ec482
 
6ec482
 
6ec482
 def get_idmap_range(realm):
6ec482
-    idrange = api.Command.idrange_show('{}_id_range'.format(realm))['result']
6ec482
+    idrange = api.Command.idrange_show(u'{}_id_range'.format(realm))['result']
6ec482
     range_start = int(idrange['ipabaseid'][0])
6ec482
     range_size = int(idrange['ipaidrangesize'][0])
6ec482
     range_fmt = '{} - {}'.format(range_start, range_start + range_size)
6ec482
-- 
6ec482
2.21.0
6ec482