Hi,

the attached patch fixes <https://fedorahosted.org/freeipa/ticket/5601>.

Honza

--
Jan Cholasta
From 8a1327f8810608c958da985bf3b304c12376849e Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@redhat.com>
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
---
 ipalib/frontend.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index 8d5142a..5b730b1 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -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)
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to