Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit f10d0a3

Browse files
authored
Merge pull request #1048 from kmala/bug
fix(tls): Update the value properly to work with morph
2 parents 53871f9 + dbde253 commit f10d0a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rootfs/api/models/tls.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ def save(self, *args, **kwargs):
4141
config = self._load_service_config(app, 'router')
4242

4343
# See if the ssl.enforce annotation is available
44-
if 'ssl.enforce' not in config:
45-
config['ssl.enforce'] = 'false'
44+
if 'ssl' not in config:
45+
config['ssl'] = {}
46+
if 'enforce' not in config['ssl']:
47+
config['ssl']['enforce'] = 'false'
4648

4749
# convert from bool to string
48-
config['ssl.enforce'] = str(https_enforced)
50+
config['ssl']['enforce'] = str(https_enforced)
4951

5052
self._save_service_config(app, 'router', config)
5153

0 commit comments

Comments
 (0)