From 71fa90c2ad9739848049b49c48e94ae1572b999b Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 7 Apr 2010 14:07:45 -0500 Subject: Fix configfile option for bcfg2-admin (Patch from Duncan Hutty) Also added a document describing various admin modes (needs to be fleshed out). Signed-off-by: Sol Jerome --- src/lib/Server/Admin/__init__.py | 3 ++- 1 file changed, 2 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 8ce3472fb..89415cf9f 100644 --- a/src/lib/Server/Admin/__init__.py +++ b/src/lib/Server/Admin/__init__.py @@ -89,7 +89,8 @@ class MetadataCore(Mode): '''Base class for admin-modes that handle metadata''' def __init__(self, configfile, usage, pwhitelist=None, pblacklist=None): Mode.__init__(self, configfile) - options = {'plugins': Bcfg2.Options.SERVER_PLUGINS} + options = {'plugins': Bcfg2.Options.SERVER_PLUGINS, + 'configfile': Bcfg2.Options.CFILE} setup = Bcfg2.Options.OptionParser(options) setup.hm = usage setup.parse(sys.argv[1:]) -- cgit v1.2.3-1-g7c22