mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
fix: regression in API version comparison
Commint 2cbaf15604
introduced a regression
in API version comparison. In case that newer client is trying to call
older server an error is returned, but it should work. This commit fixes
it.
https://fedorahosted.org/freeipa/ticket/6468
Reviewed-By: Simo Sorce <ssorce@redhat.com>
This commit is contained in:
parent
26bd7ebfa2
commit
0663faf258
@ -776,8 +776,7 @@ class Command(HasParam):
|
||||
sver=self.api_version,
|
||||
server=self.env.xmlrpc_uri)
|
||||
|
||||
if (client_apiver.major != server_apiver.major
|
||||
or client_apiver > server_apiver):
|
||||
if client_apiver.major != server_apiver.major:
|
||||
raise VersionError(cver=client_version,
|
||||
sver=self.api_version,
|
||||
server=self.env.xmlrpc_uri)
|
||||
|
Loading…
Reference in New Issue
Block a user