From 8e02fd717b6af02aebdf52b0fe0ba1a5f6613d80 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Wed, 9 Feb 2022 18:20:58 +0100 Subject: [PATCH] Update check-nextcloud Bugfix: ``` ValueError: Invalid line in agent section <<>>. Reason: Received empty line. Did any of your local checks returned a superfluous newline character? First offending line: "cached(1644392795,600)" ``` --- check-nextcloud | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-nextcloud b/check-nextcloud index 478ee7d..0c9be06 100644 --- a/check-nextcloud +++ b/check-nextcloud @@ -51,7 +51,7 @@ def update_check(conf:dict): updates = result count = 0 - return f"updates={count};;1;; {updates}" + return f"updates={count};;1;; {updates.strip()}" def status(conf:dict): if 'docker_container' in conf.keys() and (conf['docker_container'] != None or conf['docker_container'] != ""):