1
0
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:
Tomas Edwardsson 2013-07-16 22:09:23 +00:00
parent 7ad46b2f68
commit 5af347c3df

View File

@ -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: