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:
Thorsten Spille 2022-02-09 18:20:58 +01:00 committed by GitHub
parent ade5c78a9e
commit 8e02fd717b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'] != ""):