Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipa-setup-kra: fix python2 parameter #2968

Closed
wants to merge 1 commit into from

Conversation

flo-renaud
Copy link
Contributor

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

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
@tiran tiran added ack Pull Request approved, can be merged ipa-4-7 ipa-4-6 Mark for backport to ipa 4.6 labels Apr 1, 2019
@tiran
Copy link
Member

tiran commented Apr 1, 2019

Thanks for the fix!

Note: The patch is only required for Python 2 compatibility on RHEL 7. The master branch no longer supports Python 2. It doesn't hurt to have the change in master, though.

@tiran tiran added prioritized Pull Request has higher priority for PR-CI py3 re-run Trigger a new run of PR-CI labels Apr 1, 2019
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Apr 1, 2019
@tiran tiran added the pushed Pull Request has already been pushed label Apr 1, 2019
@tiran
Copy link
Member

tiran commented Apr 1, 2019

master:

  • 23ae171 ipa-setup-kra: fix python2 parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged ipa-4-6 Mark for backport to ipa 4.6 prioritized Pull Request has higher priority for PR-CI pushed Pull Request has already been pushed
Projects
None yet
3 participants