From 88c057bc798b2606bafbed5c0b76475b0640b5e8 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 12 Jan 2016 15:41:43 +0100 Subject: [PATCH] ipalib: assume version 2.0 when skip_version_check is enabled https://fedorahosted.org/freeipa/ticket/5601 Reviewed-By: Martin Basti --- ipalib/frontend.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 2ca3aaea82ea63702052eedbd7e4081f239cbaed..8adcee925a24fd546d7000e9239353da273e0bc9 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -26,7 +26,6 @@ from distutils import version from ipapython.version import API_VERSION from ipapython.ipa_log_manager import root_logger -from ipalib.capabilities import VERSION_WITHOUT_CAPABILITIES from base import NameSpace from plugable import Plugin from parameters import create_param, Param, Str, Flag, Password @@ -425,7 +424,7 @@ class Command(HasParam): if version_provided: self.verify_client_version(unicode(options['version'])) elif self.api.env.skip_version_check and not self.api.env.in_server: - options['version'] = VERSION_WITHOUT_CAPABILITIES + options['version'] = u'2.0' else: options['version'] = API_VERSION params = self.args_options_2_params(*args, **options) -- 2.4.3