aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-11-19 14:21:53 +0000
committerpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-11-19 14:21:53 +0000
commit126a2af895313e538e549e744c6c21c1048fefa8 (patch)
tree3aec7af49a08f34e6d2135ff24bc8236574a7c80
parenta89e9c86b7475dfad0f25b43f43cd63c0c69a828 (diff)
downloadsos-126a2af895313e538e549e744c6c21c1048fefa8.tar.gz
autofs: cleanup of the code logic
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1010 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos/plugins/autofs.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sos/plugins/autofs.py b/sos/plugins/autofs.py
index f3db92a1..870bee9e 100644
--- a/sos/plugins/autofs.py
+++ b/sos/plugins/autofs.py
@@ -33,10 +33,9 @@ class autofs(sos.plugintools.PluginBase):
opt = self.fileGrep(r"^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)", "/etc/sysconfig/autofs")
for opt1 in opt:
for opt2 in opt1.split(" "):
- optlist.append(opt2)
- for dtest in optlist:
- if dtest == "--debug" or dtest == "debug":
- return True
+ if opt2 in ("--debug", "debug"):
+ return True
+ return False
def getdaemondebug(self):
""" capture daemon debug output