From 3f1fcdc290237671fcf3cc7b4252c857da4ca4e5 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 30 Dec 2008 20:39:46 +0000 Subject: Fix Bcfg2.Options import for admin modes git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5002 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Admin/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/Server/Admin') diff --git a/src/lib/Server/Admin/__init__.py b/src/lib/Server/Admin/__init__.py index 52a04a59e..fdba06250 100644 --- a/src/lib/Server/Admin/__init__.py +++ b/src/lib/Server/Admin/__init__.py @@ -5,6 +5,8 @@ __all__ = ['Mode', 'Client', 'Compare', 'Fingerprint', 'Init', 'Minestruct', import ConfigParser, lxml.etree, logging, sys import Bcfg2.Server.Core +import Bcfg2.Options + class ModeOperationError(Exception): pass @@ -66,7 +68,7 @@ class MetadataCore(Mode): if generator in self.allowed] try: self.bcore = Bcfg2.Server.Core.Core(self.get_repo_path(), plugins, - structures, generators, + structures, generators, [], 'foo', False, 'UTF-8') except Bcfg2.Server.Core.CoreInitError, msg: self.errExit("Core load failed because %s" % msg) -- cgit v1.2.3-1-g7c22