diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-27 00:23:43 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-27 00:23:43 -0600 |
commit | 03accc5fb382777d9bbdb245f3211d5c06489f6e (patch) | |
tree | 2c87504ed56d60a688bd6f7110ed1393cfee6905 /ipalib/plugable.py | |
parent | 4fe03f5e17dfe9d4478a75dfada2282535c989fe (diff) | |
download | freeipa-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.py | 5 |
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): """ |