From f5ec21e6ac612566af93158fc3968b901322d04a Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sat, 4 Apr 2020 17:19:32 -0700 Subject: [PATCH] use in instead of find() --- jc/parsers/systemctl_luf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/parsers/systemctl_luf.py b/jc/parsers/systemctl_luf.py index a049d351..6876b04c 100644 --- a/jc/parsers/systemctl_luf.py +++ b/jc/parsers/systemctl_luf.py @@ -31,7 +31,7 @@ import jc.utils class info(): - version = '1.0' + version = '1.1' description = 'systemctl list-unit-files command parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' @@ -99,7 +99,7 @@ def parse(data, raw=False, quiet=False): raw_output = [] for entry in cleandata[1:]: - if entry.find('unit files listed.') != -1: + if 'unit files listed.' in entry: break else: