From 513bbeb4649c011476930e1d1bf739ff06c2d66f Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 15 Nov 2019 19:02:57 -0800 Subject: [PATCH] add break on footer condition --- jc/parsers/systemctl_lj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/systemctl_lj.py b/jc/parsers/systemctl_lj.py index 734f108c..42393cdf 100644 --- a/jc/parsers/systemctl_lj.py +++ b/jc/parsers/systemctl_lj.py @@ -122,7 +122,7 @@ def parse(data, raw=False, quiet=False): raw_output = [] for entry in cleandata[1:]: - if entry.find('No jobs running.') != -1: + if entry.find('No jobs running.') != -1 or entry.find('jobs listed.') != -1: break else: