From 12a2606ccc55dfee87cd2d324face72d9ee26080 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 13 Aug 2009 03:53:02 +0000 Subject: 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 --- src/lib/Server/Admin/Init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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: -- cgit v1.2.3-1-g7c22