diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-08-13 03:53:02 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-08-13 03:53:02 +0000 |
commit | 12a2606ccc55dfee87cd2d324face72d9ee26080 (patch) | |
tree | 2047a857463ce6db8f43bf171883d5552f5a7936 /src | |
parent | 0205df00dc77e79d1ced93921655fb51913fb3e8 (diff) | |
download | bcfg2-12a2606ccc55dfee87cd2d324face72d9ee26080.tar.gz bcfg2-12a2606ccc55dfee87cd2d324face72d9ee26080.tar.bz2 bcfg2-12a2606ccc55dfee87cd2d324face72d9ee26080.zip |
bcfg2-admin init: Fix __import__ call for python pre 2.5
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5405 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Admin/Init.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Admin/Init.py b/src/lib/Server/Admin/Init.py index e3ea6d7c0..c12fcf9a8 100644 --- a/src/lib/Server/Admin/Init.py +++ b/src/lib/Server/Admin/Init.py @@ -230,7 +230,8 @@ class Init(Bcfg2.Server.Admin.Mode): Bcfg2.Server.Plugins.Metadata.Metadata.init_repo(self.repopath, groups, self.os_sel, clients) else: try: - module = __import__("Bcfg2.Server.Plugins.%s" % plugin, fromlist=["Bcfg2.Server.Plugins"]) + module = __import__("Bcfg2.Server.Plugins.%s" % plugin, '', + '', ["Bcfg2.Server.Plugins"]) cls = getattr(module, plugin) cls.init_repo(self.repopath) except Exception, e: |