fix db_host

This commit is contained in:
Cayo Puigdefabregas 2022-11-08 18:35:47 +01:00
parent fe33f2d7e7
commit 25f2287e98
2 changed files with 3 additions and 2 deletions

View file

@ -3,7 +3,7 @@
DH_TOKEN = {{ token }}
DH_URL = {{ url }}
{% if erease_basic %}
DH_HOST = {{ host }}
DH_HOST = {{ api_host }}
DH_DATABASE = {{ schema }}
DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/
@ -17,7 +17,7 @@ WB_ERASE_LEADING_ZEROS = False
WB_DEBUG = True
{% elif baseline_erease %}
DH_HOST = {{ host }}
DH_HOST = {{ api_host }}
DH_DATABASE = {{ schema }}
DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/

View file

@ -68,6 +68,7 @@ class SettingsView(GenericMixin):
url = "https://{}/actions/".format(app.config['API_HOST'])
self.wbContext['url'] = url
self.wbContext['host'] = app.config['HOST']
self.wbContext['api_host'] = app.config['API_HOST']
self.wbContext['schema'] = app.config['SCHEMA']
if self.opt == 'erease_basic':