aboutsummaryrefslogtreecommitdiffstats
path: root/src/sosreport
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-02-20 16:20:07 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-02-20 16:20:07 +0000
commite4b14ff6e7a3da9a312ae4031bd8df8fd006a5a2 (patch)
tree05a183dcc28ca6d8e4f85ec380e00acad779623e /src/sosreport
parentcae92865068c2af52458366e6a901ae79238d26b (diff)
downloadsos-e4b14ff6e7a3da9a312ae4031bd8df8fd006a5a2.tar.gz
Exit if no valid plugin was selected (rather than building an empty sosreport).
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@84 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/sosreport')
-rwxr-xr-xsrc/sosreport4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sosreport b/src/sosreport
index e0b3e7a4..63f0648d 100755
--- a/src/sosreport
+++ b/src/sosreport
@@ -233,6 +233,10 @@ def sosreport():
raise
print "plugin load failed for %s" % plug
+ if not len(loadedplugins):
+ print "no valid plugins were enabled"
+ sys.exit(1)
+
# Iterate over plugins for each stage
# First, gather and process options