summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-12-30 20:39:46 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-12-30 20:39:46 +0000
commit3f1fcdc290237671fcf3cc7b4252c857da4ca4e5 (patch)
treec04fe086eedde3431005b911440fff8c5e49941c /src/lib/Server/Admin
parent00c3bd9a49a79e435ca056e3cc0cfa3ebef0bbd3 (diff)
downloadbcfg2-3f1fcdc290237671fcf3cc7b4252c857da4ca4e5.tar.gz
bcfg2-3f1fcdc290237671fcf3cc7b4252c857da4ca4e5.tar.bz2
bcfg2-3f1fcdc290237671fcf3cc7b4252c857da4ca4e5.zip
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
Diffstat (limited to 'src/lib/Server/Admin')
-rw-r--r--src/lib/Server/Admin/__init__.py4
1 files changed, 3 insertions, 1 deletions
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)