diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-05-21 12:24:00 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-05-21 12:40:44 -0500 |
commit | f37fdb3e1374aa6742fb3cb902812132641a745d (patch) | |
tree | 8ab08886fe79a713fc4d3a855e7370208277e5b4 /src/lib/Bcfg2/Server | |
parent | 02d7f574babfeb2da99e2aad3a92b4e8d6494f07 (diff) | |
download | bcfg2-f37fdb3e1374aa6742fb3cb902812132641a745d.tar.gz bcfg2-f37fdb3e1374aa6742fb3cb902812132641a745d.tar.bz2 bcfg2-f37fdb3e1374aa6742fb3cb902812132641a745d.zip |
Packages: Print more information when a source type fails to load
If a yum type is used on python 2.4 and simplejson is not installed,
this message is the only error
Packages: Unknown source type Yum
Diffstat (limited to 'src/lib/Bcfg2/Server')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py b/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py index 2e035a785..88e5bea6c 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py @@ -86,8 +86,8 @@ class PackagesSources(Bcfg2.Server.Plugin.SingleXMLFileBacked, stype.title()).Server.Plugins.Packages, stype.title()) cls = getattr(module, "%sSource" % stype.title()) - except (ImportError, AttributeError): - self.logger.error("Packages: Unknown source type %s" % stype) + except (ImportError, AttributeError), ex: + self.logger.error("Packages: Unknown source type %s (%s)" % (stype, ex)) return None try: |