diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-08 16:05:37 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-08 16:05:37 +0000 |
commit | e931950c5a26e823ac0a8c186617b9fa68e22843 (patch) | |
tree | daeb227f3c862529cd2d1a961e18399cbaf696f3 /src/lib/Client/Frame.py | |
parent | 9b7cbe4cd79401d0ef37b67056963931e03df561 (diff) | |
download | bcfg2-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.py | 6 |
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(), ['*']) |