mirror of
https://github.com/bashclub/check-nextcloud.git
synced 2024-11-07 15:01:58 +01:00
Update check-nextcloud
Bugfix: ``` ValueError: Invalid line in agent section <<<local>>>. Reason: Received empty line. Did any of your local checks returned a superfluous newline character? First offending line: "cached(1644392795,600)" ```
This commit is contained in:
parent
ade5c78a9e
commit
8e02fd717b
@ -51,7 +51,7 @@ def update_check(conf:dict):
|
|||||||
updates = result
|
updates = result
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
return f"updates={count};;1;; {updates}"
|
return f"updates={count};;1;; {updates.strip()}"
|
||||||
|
|
||||||
def status(conf:dict):
|
def status(conf:dict):
|
||||||
if 'docker_container' in conf.keys() and (conf['docker_container'] != None or conf['docker_container'] != ""):
|
if 'docker_container' in conf.keys() and (conf['docker_container'] != None or conf['docker_container'] != ""):
|
||||||
|
Loading…
Reference in New Issue
Block a user