mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
use in instead of find()
This commit is contained in:
@ -40,7 +40,7 @@ import jc.utils
|
|||||||
|
|
||||||
|
|
||||||
class info():
|
class info():
|
||||||
version = '1.0'
|
version = '1.1'
|
||||||
description = 'systemctl command parser'
|
description = 'systemctl command parser'
|
||||||
author = 'Kelly Brazil'
|
author = 'Kelly Brazil'
|
||||||
author_email = 'kellyjonbrazil@gmail.com'
|
author_email = 'kellyjonbrazil@gmail.com'
|
||||||
@ -110,7 +110,7 @@ def parse(data, raw=False, quiet=False):
|
|||||||
raw_output = []
|
raw_output = []
|
||||||
|
|
||||||
for entry in cleandata[1:]:
|
for entry in cleandata[1:]:
|
||||||
if entry.find('LOAD = ') != -1:
|
if 'LOAD = ' in entry:
|
||||||
break
|
break
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user