diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-01-19 04:03:59 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-01-19 04:03:59 +0000 |
commit | 538d451c22d2c6628f15f530ff621d96679cecb5 (patch) | |
tree | 1d4a5b88b0db33e72e6cbd87d8cc5f24fb3b06aa | |
parent | 06c9e437e756fcf3461eaa27e0d42d8913656fae (diff) | |
download | bcfg2-538d451c22d2c6628f15f530ff621d96679cecb5.tar.gz bcfg2-538d451c22d2c6628f15f530ff621d96679cecb5.tar.bz2 bcfg2-538d451c22d2c6628f15f530ff621d96679cecb5.zip |
Remove client-side of (deprecated) toolset support
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4267 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Client/Frame.py | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py index 3b3174d9d..92fa3ca7b 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -27,13 +27,6 @@ def promptFilter(prompt, entries): continue return ret -toolset_defs = {'rh': {'Service':'chkconfig', 'Package':'rpm'}, - 'debian': {'Service':'deb', 'Package':'deb'}, - 'nexenta': {'Service':'smf', 'Package':'deb'}, - 'solaris': {'Service':'smf', 'Package':'sysv'}, - 'gentoo': {'Service':'rc-update', 'Package':'ebuild'}, - 'freebsd': {'Package':'freebsdpkg'}} - class Frame: '''Frame is the container for all Tool objects and state information''' def __init__(self, config, setup, times, drivers, dryrun): @@ -49,7 +42,8 @@ class Frame: self.removal = [] self.logger = logging.getLogger("Bcfg2.Client.Frame") for driver in drivers[:]: - if driver not in Bcfg2.Client.Tools.drivers: + if driver not in Bcfg2.Client.Tools.drivers and \ + isinstance(driver, types.StringType): self.logger.error("Tool driver %s is not available" % driver) drivers.remove(driver) @@ -67,7 +61,6 @@ class Frame: except: self.logger.error("Tool %s unexpectedly failed to load" % tool, exc_info=1) - for tool in tclass.values(): try: @@ -93,12 +86,6 @@ class Frame: tool.InstallConfigFile(cfile) # find entries not handled by any tools problems = [entry for struct in config for entry in struct if entry not in self.handled] - if toolset_defs.has_key(config.get('toolset')): - tdefs = toolset_defs[config.get('toolset')] - for problem in problems[:]: - if tdefs.has_key(problem.tag): - problem.set('type', tdefs[problem.tag]) - problems.remove(problem) if problems: self.logger.error("The following entries are not handled by any tool:") |