summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Frame.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-04-05 18:26:46 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-04-05 18:26:46 +0000
commit62f2da3e6c4f26225e418336572a4ef48968021e (patch)
treea7ca1d18178da76dcd71abf71f25e225f8fb7378 /src/lib/Client/Frame.py
parent054ae0c3fa9cd9babbb6bf477032385478550a07 (diff)
downloadbcfg2-62f2da3e6c4f26225e418336572a4ef48968021e.tar.gz
bcfg2-62f2da3e6c4f26225e418336572a4ef48968021e.tar.bz2
bcfg2-62f2da3e6c4f26225e418336572a4ef48968021e.zip
Add better driver control support to bcfg2 client (Resolves Ticket #389)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3012 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Frame.py')
-rw-r--r--src/lib/Client/Frame.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index 17bbf2417..b62e5a5d8 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -47,9 +47,15 @@ class Frame:
self.removal = []
self.logger = logging.getLogger("Bcfg2.Client.Frame")
if self.setup['drivers']:
- tools = self.setup['drivers'].split(',')
+ tools = []
+ for tcandidate in self.setup['drivers'].split(','):
+ if tcandidate not in Bcfg2.Client.Tools.drivers:
+ self.logger.error("Tool driver %s is not available"\
+ % (tcandidate))
+ else:
+ tools.append(tcandidate)
else:
- tools = Bcfg2.Client.Tools.drivers[:]
+ tools = Bcfg2.Client.Tools.default[:]
tclass = {}
for tool in tools:
tool_class = "Bcfg2.Client.Tools.%s" % tool