summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Frame.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-26 09:48:07 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-26 10:05:22 -0400
commit34e5287c4b18ba5bfdbb74b729ceebb2a1f1637e (patch)
treebb36dd2684745ca5723c7c4909c912971f050d25 /src/lib/Bcfg2/Client/Frame.py
parentcd47ea485e6be6327c3b67323dc55c0533d4f256 (diff)
downloadbcfg2-34e5287c4b18ba5bfdbb74b729ceebb2a1f1637e.tar.gz
bcfg2-34e5287c4b18ba5bfdbb74b729ceebb2a1f1637e.tar.bz2
bcfg2-34e5287c4b18ba5bfdbb74b729ceebb2a1f1637e.zip
deprecated YUM24 tool, renamed YUMng to YUM, RPMng to RPM
Diffstat (limited to 'src/lib/Bcfg2/Client/Frame.py')
-rw-r--r--src/lib/Bcfg2/Client/Frame.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Client/Frame.py b/src/lib/Bcfg2/Client/Frame.py
index ef61940eb..b0032057a 100644
--- a/src/lib/Bcfg2/Client/Frame.py
+++ b/src/lib/Bcfg2/Client/Frame.py
@@ -84,11 +84,11 @@ class Frame(object):
for tool in list(tclass.values()):
try:
self.tools.append(tool(self.logger, setup, config))
- except Bcfg2.Client.Tools.toolInstantiationError:
+ except Bcfg2.Client.Tools.ToolInstantiationError:
continue
except:
- self.logger.error("Failed to instantiate tool %s" % \
- (tool), exc_info=1)
+ self.logger.error("Failed to instantiate tool %s" % tool,
+ exc_info=1)
for tool in self.tools[:]:
for conflict in getattr(tool, 'conflicts', []):
@@ -99,10 +99,15 @@ class Frame(object):
self.logger.info("Loaded tool drivers:")
self.logger.info([tool.name for tool in self.tools])
+ deprecated = [tool.name for tool in self.tools if tool.deprecated]
+ if deprecated:
+ self.logger.warning("Loaded deprecated tool drivers:")
+ self.logger.warning(deprecated)
+
# find entries not handled by any tools
self.unhandled = [entry for struct in config
- for entry in struct
- if entry not in self.handled]
+ for entry in struct
+ if entry not in self.handled]
if self.unhandled:
self.logger.error("The following entries are not handled by any "