pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0007-do-not-import-memcache-on-client.patch

590d18
From 0def5f5e160f6ebdf766d956721b70c26372a0b6 Mon Sep 17 00:00:00 2001
590d18
From: Petr Vobornik <pvoborni@redhat.com>
590d18
Date: Thu, 16 Jul 2015 10:17:26 +0200
590d18
Subject: [PATCH] do not import memcache on client
590d18
590d18
Fixes regression caused by cd3ca94ff2ef738cb3a9eae502193413058f976d.
590d18
590d18
Which caused:
590d18
* client installation failure (missing memcache)
590d18
* invalid warning in CLI on server
590d18
590d18
https://fedorahosted.org/freeipa/ticket/5133
590d18
590d18
Reviewed-By: Tomas Babej <tbabej@redhat.com>
590d18
---
590d18
 ipalib/plugins/session.py | 6 ++++--
590d18
 1 file changed, 4 insertions(+), 2 deletions(-)
590d18
590d18
diff --git a/ipalib/plugins/session.py b/ipalib/plugins/session.py
590d18
index 3fd566d3224a13b5fbaa4450f02855329a13bc4c..b03b6b41032ab7f00ff9b75e23b5f998353a7ea5 100644
590d18
--- a/ipalib/plugins/session.py
590d18
+++ b/ipalib/plugins/session.py
590d18
@@ -2,11 +2,13 @@
590d18
 # Copyright (C) 2015  FreeIPA Contributors see COPYING for license
590d18
 #
590d18
 
590d18
-from ipalib import Command
590d18
+from ipalib import api, Command
590d18
 from ipalib.request import context
590d18
-from ipalib.session import session_mgr
590d18
 from ipalib.plugable import Registry
590d18
 
590d18
+if api.env.in_server:
590d18
+    from ipalib.session import session_mgr
590d18
+
590d18
 register = Registry()
590d18
 
590d18
 
590d18
-- 
590d18
2.4.3
590d18