From 207b862b28bc11058b1f5dd4d856e14b6b5c87fd Mon Sep 17 00:00:00 2001 From: astokes Date: Wed, 28 Apr 2010 15:17:09 +0000 Subject: handle bool type git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@949 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- sos/plugins/ds.py | 8 ++++---- 1 file 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 -- cgit