summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-12-12 18:28:53 +0100
committerMartin Basti <mbasti@redhat.com>2016-12-13 13:53:27 +0100
commit0663faf2585be4af3501965934703da0ede41610 (patch)
tree23ccff0530208973b4a893383984b3b78c59404f /ipalib
parent26bd7ebfa27d15221e5d3fa1e3871a0085c31e0f (diff)
downloadfreeipa-0663faf2585be4af3501965934703da0ede41610.tar.gz
freeipa-0663faf2585be4af3501965934703da0ede41610.tar.xz
freeipa-0663faf2585be4af3501965934703da0ede41610.zip
fix: regression in API version comparison
Commint 2cbaf156045769b54150e4d4c3c1071f164a16fb 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>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/frontend.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index dfa6cdf58..41dcd4af7 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -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)