From b440200651cb4cc4b7b0554b4cbbcf4cf934c440 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sun, 30 Jan 2022 22:07:37 +0100 Subject: [PATCH] Update check-nextcloud --- check-nextcloud | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-nextcloud b/check-nextcloud index 8cc819e..9ac0737 100644 --- a/check-nextcloud +++ b/check-nextcloud @@ -48,7 +48,7 @@ def update_check(conf:dict): updates = result count = 0 - return f" updates={count};;1;; {updates}" + return f"updates={count};;1;; {updates}" def status(conf:dict): result = json.loads(occ("status", conf['nc_www_user'],conf['nc_path'], conf['nc_php_version'], output="json")) @@ -58,7 +58,7 @@ def status(conf:dict): state = 1 else: state = 0 - return f" status={state};1;2;; {' '.join(['{0}: {1}'.format(key, value) for (key, value) in result.items()])}" + return f"status={state};1;2;; {' '.join(['{0}: {1}'.format(key, value) for (key, value) in result.items()])}" def printout(name:str,function:str, result:str): print(f'P "Nextcloud {name} {function}" {result}')