https://fedorahosted.org/freeipa/ticket/4739
--
David Kupka
From 58685f92e8d4c1817f95a7b4042ce0fa4c95a704 Mon Sep 17 00:00:00 2001
From: David Kupka <dku...@redhat.com>
Date: Fri, 1 Jul 2016 07:50:08 +0200
Subject: [PATCH] schema: Perform the check for schema update when
 force_schema_check is True

https://fedorahosted.org/freeipa/ticket/4739
---
 ipaclient/remote_plugins/schema.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ipaclient/remote_plugins/schema.py b/ipaclient/remote_plugins/schema.py
index a54d4eb777d3fa3d0a1dd6223eca2efeb8db4fbd..78ca84484595ce28da12bc81561003894d7c8db3 100644
--- a/ipaclient/remote_plugins/schema.py
+++ b/ipaclient/remote_plugins/schema.py
@@ -496,7 +496,8 @@ class Schema(object):
                     logger.warning('Failed to load server properties: {}'
                                    ''.format(e))
 
-        if no_info or exp < time.time() or not Schema._in_cache(fp):
+        if (self._api.env.force_schema_check or
+                no_info or exp < time.time() or not Schema._in_cache(fp)):
             (fp, exp) = self._get_schema()
             _ensure_dir_created(SERVERS_DIR)
             try:
-- 
2.7.4

-- 
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