summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-27 00:23:43 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-27 00:23:43 -0600
commit03accc5fb382777d9bbdb245f3211d5c06489f6e (patch)
tree2c87504ed56d60a688bd6f7110ed1393cfee6905 /ipalib/plugable.py
parent4fe03f5e17dfe9d4478a75dfada2282535c989fe (diff)
downloadfreeipa-03accc5fb382777d9bbdb245f3211d5c06489f6e.tar.gz
freeipa-03accc5fb382777d9bbdb245f3211d5c06489f6e.tar.xz
freeipa-03accc5fb382777d9bbdb245f3211d5c06489f6e.zip
Copied plugin loading function from load_plugins.py to util.py; API.load_plugins() method now calls functions in util
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 4c0b175f5..367211576 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -30,6 +30,7 @@ import inspect
import errors
from errors import check_type, check_isinstance
from config import Environment
+import util
class ReadOnly(object):
@@ -744,6 +745,10 @@ class API(DictProxy):
"""
self.__doing('load_plugins')
self.__do_if_not_done('bootstrap')
+ if dry_run:
+ return
+ util.import_plugins_subpackage('ipalib')
+ util.import_plugins_subpackage('ipa_server')
def finalize(self):
"""