From 95df14634663f5ef57875b8ce1e54ca14c111a75 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 16 Mar 2012 10:26:17 -0400 Subject: [PATCH] Import the ipaserver plugins based on context, not env.in_server. in_server controls how a method is dispatched, it should not also control what plugins are imported. This suppresses the error message "session memcached servers not running." https://fedorahosted.org/freeipa/ticket/2499 --- ipalib/plugable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 4d0011029..293db9241 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -596,7 +596,7 @@ class API(DictProxy): if self.env.mode in ('dummy', 'unit_test'): return self.import_plugins('ipalib') - if self.env.in_server: + if self.env.context in ('server', 'lite'): self.import_plugins('ipaserver') if self.env.context in ('installer', 'updates'): self.import_plugins('ipaserver/install/plugins')