diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-01-12 03:00:27 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-01-12 03:00:27 +0000 |
commit | 8b0877e06b6e1ecae768a5bd552cb7fbc0cedee1 (patch) | |
tree | b6acda0c10b7a4681cd3d9a3c0291b54c2affe27 /src/lib/Server/Admin/__init__.py | |
parent | df00a6dab51f7a61059b367b935017a194afa73d (diff) | |
download | bcfg2-8b0877e06b6e1ecae768a5bd552cb7fbc0cedee1.tar.gz bcfg2-8b0877e06b6e1ecae768a5bd552cb7fbc0cedee1.tar.bz2 bcfg2-8b0877e06b6e1ecae768a5bd552cb7fbc0cedee1.zip |
Plugin configuration change: all plugins now need to be specified in the plugins line in bcfg2.conf (no more structures, generators, or connectors lines)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5014 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Admin/__init__.py')
-rw-r--r-- | src/lib/Server/Admin/__init__.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/lib/Server/Admin/__init__.py b/src/lib/Server/Admin/__init__.py index fdba06250..aa8169811 100644 --- a/src/lib/Server/Admin/__init__.py +++ b/src/lib/Server/Admin/__init__.py @@ -50,25 +50,18 @@ class Mode(object): return hostent[0] class MetadataCore(Mode): - allowed = ['Metadata', 'BB'] '''Base class for admin-modes that handle metadata''' def __init__(self, configfile, usage): Mode.__init__(self, configfile) - options = {'plugins': Bcfg2.Options.SERVER_PLUGINS, - 'structures': Bcfg2.Options.SERVER_STRUCTURES, - 'generators': Bcfg2.Options.SERVER_GENERATORS} + options = {'plugins': Bcfg2.Options.SERVER_PLUGINS} setup = Bcfg2.Options.OptionParser(options) setup.hm = usage setup.parse(sys.argv[1:]) plugins = [plugin for plugin in setup['plugins'] if plugin in self.allowed] - structures = [structure for structure in setup['structures'] - if structure in self.allowed] - generators = [generator for generator in setup['generators'] - if generator in self.allowed] try: - self.bcore = Bcfg2.Server.Core.Core(self.get_repo_path(), plugins, - structures, generators, [], + self.bcore = Bcfg2.Server.Core.Core(self.get_repo_path(), + setup['plugins'], 'foo', False, 'UTF-8') except Bcfg2.Server.Core.CoreInitError, msg: self.errExit("Core load failed because %s" % msg) @@ -78,7 +71,4 @@ class MetadataCore(Mode): self.metadata = self.bcore.metadata class StructureMode(MetadataCore): - allowed = ['Statistics', 'DBStats'] - def __init__(self, configfile, usage): - MetadataCore.__init__(self, configfile, usage) - self.statistics = self.bcore.stats + pass |