aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-04-28 15:17:09 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-04-28 15:17:09 +0000
commit207b862b28bc11058b1f5dd4d856e14b6b5c87fd (patch)
treef15815998c4aa18f819244755cfac3d295b50a51
parent0ad2854d11bed8930e6b7b05af446210e2cbed4f (diff)
downloadsos-207b862b28bc11058b1f5dd4d856e14b6b5c87fd.tar.gz
handle bool type
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@949 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos/plugins/ds.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sos/plugins/ds.py b/sos/plugins/ds.py
index 6709d8b5..49ec7e86 100644
--- a/sos/plugins/ds.py
+++ b/sos/plugins/ds.py
@@ -40,13 +40,13 @@ class ds(sos.plugintools.PluginBase):
return False
def setup(self):
- if "ds8" in self.check_version():
+ if not self.check_version():
+ self.addAlert("Directory Server not found.")
+ elif "ds8" in self.check_version():
self.addCopySpec("/etc/dirsrv/slapd*")
self.addCopySpec("/var/log/dirsrv/*")
- if "ds7" in self.check_version():
+ elif "ds7" in self.check_version():
self.addCopySpec("/opt/redhat-ds/slapd-*/config")
self.addCopySpec("/opt/redhat-ds/slapd-*/logs")
- if not self.check_version():
- self.addAlert("Directory Server not found.")
return