summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Frame.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-01-08 16:05:37 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-01-08 16:05:37 +0000
commite931950c5a26e823ac0a8c186617b9fa68e22843 (patch)
treedaeb227f3c862529cd2d1a961e18399cbaf696f3 /src/lib/Client/Frame.py
parent9b7cbe4cd79401d0ef37b67056963931e03df561 (diff)
downloadbcfg2-e931950c5a26e823ac0a8c186617b9fa68e22843.tar.gz
bcfg2-e931950c5a26e823ac0a8c186617b9fa68e22843.tar.bz2
bcfg2-e931950c5a26e823ac0a8c186617b9fa68e22843.zip
Add client support for manual driver specification
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2627 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Frame.py')
-rw-r--r--src/lib/Client/Frame.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index 12531f2e6..16fa3e11a 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -29,7 +29,11 @@ class Frame:
self.whitelist = []
self.removal = []
self.logger = logging.getLogger("Bcfg2.Client.Frame")
- for tool in Bcfg2.Client.Tools.__all__[:]:
+ if self.setup['drivers']:
+ tools = self.setup['drivers'].split(',')
+ else:
+ tools = Bcfg2.Client.Tools.__all__[:]
+ for tool in tools:
try:
tool_class = "Bcfg2.Client.Tools.%s" % tool
mod = __import__(tool_class, globals(), locals(), ['*'])