mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
add break on footer condition
This commit is contained in:
@ -122,7 +122,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('No jobs running.') != -1:
|
if entry.find('No jobs running.') != -1 or entry.find('jobs listed.') != -1:
|
||||||
break
|
break
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user