replica: fix SetuptoolsVersion comparison

Python 3 does not allow comparing SetuptoolsVersion and str
instances.

https://pagure.io/freeipa/issue/4985

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Stanislav Laznicka 2017-07-28 07:57:41 +02:00 committed by Pavel Vomacka
parent 1124eee2ff
commit 76904ba84d

View File

@ -1116,7 +1116,7 @@ def promote_check(installer):
installer._remote_api = remote_api
with rpc_client(remote_api) as client:
check_remote_version(client, api.env.version)
check_remote_version(client, parse_version(api.env.version))
check_remote_fips_mode(client, api.env.fips_mode)
conn = remote_api.Backend.ldap2