From abdb9b26732a6a71f5938d665b2ca43a381e1b33 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sat, 4 Apr 2020 17:05:17 -0700 Subject: [PATCH] use in instead of find() --- jc/parsers/mount.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/parsers/mount.py b/jc/parsers/mount.py index 0fcdb690..18fe773a 100644 --- a/jc/parsers/mount.py +++ b/jc/parsers/mount.py @@ -56,7 +56,7 @@ import jc.utils class info(): - version = '1.1' + version = '1.2' description = 'mount command parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' @@ -165,7 +165,7 @@ def parse(data, raw=False, quiet=False): if cleandata: # check for OSX output - if cleandata[0].find(' type ') == -1: + if ' type ' in cleandata[0]: raw_output = osx_parse(cleandata) else: