summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2012-03-16 10:26:17 -0400
committerMartin Kosek <mkosek@redhat.com>2012-03-19 15:37:36 +0100
commit95df14634663f5ef57875b8ce1e54ca14c111a75 (patch)
treea6af8b320823e8ad78c78c87b86bb41664a7914d /ipalib/plugable.py
parent7a5ca16c749424b50f165d4672a08cd42aa30d90 (diff)
downloadfreeipa-95df14634663f5ef57875b8ce1e54ca14c111a75.tar.gz
freeipa-95df14634663f5ef57875b8ce1e54ca14c111a75.tar.xz
freeipa-95df14634663f5ef57875b8ce1e54ca14c111a75.zip
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
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py2
1 files changed, 1 insertions, 1 deletions
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')