aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-11-15 19:32:43 +0000
committerpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-11-15 19:32:43 +0000
commitca99b6c11f7c43ac48f71724ba86b0e061049a78 (patch)
tree43ca91c198a16a7a51cf700ab335287ee6dd9cb2
parent9fbec42041792107cca940084621e3460494bcc2 (diff)
downloadsos-ca99b6c11f7c43ac48f71724ba86b0e061049a78.tar.gz
Using glob in module cs.py
Closes RHBZ#653011. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@999 ef72aa8b-4018-0410-8976-d6e080ef94d8
-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