86baa9
From 031b79d7111d6deaab05a8682014504b328614d7 Mon Sep 17 00:00:00 2001
86baa9
From: Florence Blanc-Renaud <flo@redhat.com>
86baa9
Date: Mon, 1 Apr 2019 11:35:48 +0200
86baa9
Subject: [PATCH] ipa-setup-kra: fix python2 parameter
86baa9
86baa9
ipa-setup-kra is failing in python2 with
86baa9
invalid 'role_servrole': must be Unicode text
86baa9
because of a unicode conversion error.
86baa9
86baa9
The method api.Command.server_role_find is called with the parameter
86baa9
role_servrole='IPA master' but it should rather be
86baa9
role_servrole=u'IPA master'
86baa9
86baa9
Fixes: https://pagure.io/freeipa/issue/7897
86baa9
Reviewed-By: Christian Heimes <cheimes@redhat.com>
86baa9
---
86baa9
 ipaserver/install/service.py | 2 +-
86baa9
 1 file changed, 1 insertion(+), 1 deletion(-)
86baa9
86baa9
diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py
86baa9
index 8948f64c2ec2db4cd013699e07dd94d5dba6c043..a60cb7f63dc0673deae0839de8c2bb8dc3a905c8 100644
86baa9
--- a/ipaserver/install/service.py
86baa9
+++ b/ipaserver/install/service.py
86baa9
@@ -213,7 +213,7 @@ def sync_services_state(fqdn):
86baa9
     """
86baa9
     result = api.Command.server_role_find(
86baa9
         server_server=fqdn,
86baa9
-        role_servrole='IPA master',
86baa9
+        role_servrole=u'IPA master',
86baa9
         status=HIDDEN
86baa9
     )
86baa9
     if result['count']:
86baa9
-- 
86baa9
2.20.1
86baa9