mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
ipalib: assume version 2.0 when skip_version_check is enabled
https://fedorahosted.org/freeipa/ticket/5601 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
ac76644ff6
commit
6b2b173a4d
@ -28,7 +28,6 @@ import six
|
||||
|
||||
from ipapython.version import API_VERSION
|
||||
from ipapython.ipa_log_manager import root_logger
|
||||
from ipalib.capabilities import VERSION_WITHOUT_CAPABILITIES
|
||||
from ipalib.base import NameSpace
|
||||
from ipalib.plugable import Plugin
|
||||
from ipalib.parameters import create_param, Param, Str, Flag
|
||||
@ -429,7 +428,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)
|
||||
|
Loading…
Reference in New Issue
Block a user