From 8147f1a68426f2ab9f4ccfeb55a606721b939a37 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 20 Jul 2025 10:17:30 +0200 Subject: [PATCH] updated zabbix state --- states/zabbix/scripts/apt.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/states/zabbix/scripts/apt.py b/states/zabbix/scripts/apt.py index 874b39e..dbedc21 100644 --- a/states/zabbix/scripts/apt.py +++ b/states/zabbix/scripts/apt.py @@ -56,13 +56,12 @@ def isSecurityUpgrade(pkg, depcache): return False def main(): - ret = -1 try: pkgs = get_updates() - ret = len(pkgs) + print(len(pkgs)) except Exception as e: print(f"{e}", file=sys.stderr) - print(ret) + sys.exit(1) if __name__ == "__main__": main()