mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-28 09:06:44 -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(
|
result = api.Command.server_role_find(
|
||||||
server_server=fqdn,
|
server_server=fqdn,
|
||||||
role_servrole='IPA master',
|
role_servrole=u'IPA master',
|
||||||
status=HIDDEN
|
status=HIDDEN
|
||||||
)
|
)
|
||||||
if result['count']:
|
if result['count']:
|
||||||
|
Loading…
Reference in New Issue
Block a user