diff options
author | pcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-11-19 14:21:53 +0000 |
---|---|---|
committer | pcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-11-19 14:21:53 +0000 |
commit | 126a2af895313e538e549e744c6c21c1048fefa8 (patch) | |
tree | 3aec7af49a08f34e6d2135ff24bc8236574a7c80 | |
parent | a89e9c86b7475dfad0f25b43f43cd63c0c69a828 (diff) | |
download | sos-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.py | 7 |
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 |