aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/cs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sos/plugins/cs.py b/sos/plugins/cs.py
index 7f642df9..96f67861 100644
--- a/sos/plugins/cs.py
+++ b/sos/plugins/cs.py
@@ -25,7 +25,7 @@
import sos.plugintools
-import os
+import glob
class cs(sos.plugintools.PluginBase):
"""Certificate System 7.x Diagnostic Information
@@ -37,7 +37,8 @@ class cs(sos.plugintools.PluginBase):
# /var/lib/rhpki-kra ect).
def checkenabled(self):
- if self.isInstalled("rhpki-common") or os.path.exists("/var/lib/rhpki-*"):
+ if self.isInstalled("rhpki-common") or \
+ len(glob.glob("/var/lib/rhpki-*")):
return True
return False