summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2011-04-25 08:40:26 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2011-04-25 08:40:26 -0400
commit66642f84fd71e9230245b11718bf9a7e96ba0c7f (patch)
tree84b2e2daa5db15f88c82dcf97ad8711a8cafdf2c /src/sbin
parente9047ac894dc064a34bd8026f49fc186121b6cfc (diff)
downloadbcfg2-66642f84fd71e9230245b11718bf9a7e96ba0c7f.tar.gz
bcfg2-66642f84fd71e9230245b11718bf9a7e96ba0c7f.tar.bz2
bcfg2-66642f84fd71e9230245b11718bf9a7e96ba0c7f.zip
changed [main] section of bcfg2-lint.conf to [lint] to make it possible to combine config files
get full stack trace from failed plugins for easier troubleshooting
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-lint8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/sbin/bcfg2-lint b/src/sbin/bcfg2-lint
index cfb37a206..e6a530408 100755
--- a/src/sbin/bcfg2-lint
+++ b/src/sbin/bcfg2-lint
@@ -63,11 +63,7 @@ def run_plugin(plugin, plugin_name, setup=None, args=None, config=None,
# all with *-magic
kwargs = dict(files=files)
- try:
- return plugin(*args, **kwargs).Run()
- except Exception, err:
- logger.error("Failed to run plugin %s: %s" % (plugin, err))
- raise SystemExit(1)
+ return plugin(*args, **kwargs).Run()
def load_server(setup):
""" load server """
@@ -126,7 +122,7 @@ if __name__ == '__main__':
elif "bcfg2-repo-validate" in sys.argv[0]:
allplugins = 'Duplicates,RequiredAttrs,Validate'.split(',')
else:
- allplugins = config.get('main', 'plugins',
+ allplugins = config.get('lint', 'plugins',
",".join(Bcfg2.Server.Lint.__all__)).split(',')
if setup['stdin']: