NAS-122965 / 23.10 / fix default value on certificates (#1373)

* fix default value on certificates

* re-bump syncthing
This commit is contained in:
Stavros Kois
2023-07-15 22:20:40 +03:00
committed by GitHub
parent 74960b81d8
commit 4263eedaa7
25 changed files with 63 additions and 22 deletions

View File

@@ -3,7 +3,7 @@ description: WebDAV is a set of extensions to the HTTP protocol which allows use
annotations:
title: WebDAV
type: application
version: 1.0.7
version: 1.0.8
apiVersion: v2
appVersion: '1.1.3.2982'
kubeVersion: '>=1.16.0-0'

View File

@@ -0,0 +1,20 @@
#!/usr/bin/python3
import json
import os
import sys
def migrate(values):
if values.get('webdavNetwork', {}).get('certificateID', {}) == 0:
values['webdavNetwork']['certificateID'] = None
return values
if __name__ == '__main__':
if len(sys.argv) != 2:
exit(1)
if os.path.exists(sys.argv[1]):
with open(sys.argv[1], 'r') as f:
print(json.dumps(migrate(json.loads(f.read()))))

View File

@@ -19,7 +19,7 @@ webdavNetwork:
httpPort: 30034
https: false
httpsPort: 30035
certificateID: 0
certificateID: null
webdavRunAs:
user: 568
group: 568