diff options
-rw-r--r-- | sos/plugins/ds.py | 8 |
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 |