summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-04-02 15:30:11 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-04-02 15:30:11 +0000
commitcab8218f070f9e00990583ef9ab596e094506ce7 (patch)
tree2d6396200ccd265d48f5b390361673317a23b7eb /src/lib/Client
parentac0a8cac907e7f47b9ebeff63efffc5f4daec667 (diff)
downloadbcfg2-cab8218f070f9e00990583ef9ab596e094506ce7.tar.gz
bcfg2-cab8218f070f9e00990583ef9ab596e094506ce7.tar.bz2
bcfg2-cab8218f070f9e00990583ef9ab596e094506ce7.zip
Add support for drivers not enabled by default (in preparation for addition of RPMng)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3002 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Frame.py2
-rw-r--r--src/lib/Client/Tools/__init__.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index 9fa276e5e..17bbf2417 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -49,7 +49,7 @@ class Frame:
if self.setup['drivers']:
tools = self.setup['drivers'].split(',')
else:
- tools = Bcfg2.Client.Tools.__all__[:]
+ tools = Bcfg2.Client.Tools.drivers[:]
tclass = {}
for tool in tools:
tool_class = "Bcfg2.Client.Tools.%s" % tool
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index 00f0baca3..135896b8f 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -4,6 +4,8 @@ __revision__ = '$Revision$'
__all__ = ["Action", "APT", "Blast", "Chkconfig", "DebInit", "Encap", "launchd",
"Portage", "POSIX", "RPM", "RcUpdate", "SMF", "SYSV", "Yum"]
+drivers = __all__[:]
+
import os, popen2, stat, sys, Bcfg2.Client.XML, time
class toolInstantiationError(Exception):