pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone
Blob Blame History Raw
From 56b3c4cf7cab07410e026ce695667a2aa0c4ce2d Mon Sep 17 00:00:00 2001
From: Alexander Bokovoy <abokovoy@redhat.com>
Date: Fri, 23 Aug 2019 11:49:53 +0300
Subject: [PATCH] Use unicode strings for Python 2 version

Related: https://pagure.io/freeipa/issue/6951
---
 ipaserver/install/adtrustinstance.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py
index 804a04530..67dadf9b9 100644
--- a/ipaserver/install/adtrustinstance.py
+++ b/ipaserver/install/adtrustinstance.py
@@ -131,7 +131,7 @@ def map_Guests_to_nobody():
 
 
 def get_idmap_range(realm):
-    idrange = api.Command.idrange_show('{}_id_range'.format(realm))['result']
+    idrange = api.Command.idrange_show(u'{}_id_range'.format(realm))['result']
     range_start = int(idrange['ipabaseid'][0])
     range_size = int(idrange['ipaidrangesize'][0])
     range_fmt = '{} - {}'.format(range_start, range_start + range_size)
-- 
2.21.0