mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-25 03:43:46 +01:00
Fix failure on a fully patched system
This commit is contained in:
parent
7ad46b2f68
commit
5af347c3df
@ -75,6 +75,8 @@ def pkcon_get_updates():
|
|||||||
for line in stdout.split("\n"):
|
for line in stdout.split("\n"):
|
||||||
if not line:
|
if not line:
|
||||||
continue
|
continue
|
||||||
|
if line.startswith("There are no updates"):
|
||||||
|
continue
|
||||||
if results_section is False and line == "Results:":
|
if results_section is False and line == "Results:":
|
||||||
results_section = True
|
results_section = True
|
||||||
elif results_section:
|
elif results_section:
|
||||||
|
Loading…
Reference in New Issue
Block a user