mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-27 00:26:33 -06:00
ipa-setup-kra: fix python2 parameter
ipa-setup-kra is failing in python2 with invalid 'role_servrole': must be Unicode text because of a unicode conversion error. The method api.Command.server_role_find is called with the parameter role_servrole='IPA master' but it should rather be role_servrole=u'IPA master' Fixes: https://pagure.io/freeipa/issue/7897 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
d60122f9fb
commit
23ae171d97
@ -213,7 +213,7 @@ def sync_services_state(fqdn):
|
||||
"""
|
||||
result = api.Command.server_role_find(
|
||||
server_server=fqdn,
|
||||
role_servrole='IPA master',
|
||||
role_servrole=u'IPA master',
|
||||
status=HIDDEN
|
||||
)
|
||||
if result['count']:
|
||||
|
Loading…
Reference in New Issue
Block a user