From 25f2287e9884df050e397660a14e6d12e77b3756 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 8 Nov 2022 18:35:47 +0100 Subject: [PATCH] fix db_host --- ereuse_devicehub/templates/workbench/wbSettings.ini | 4 ++-- ereuse_devicehub/workbench/views.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/templates/workbench/wbSettings.ini b/ereuse_devicehub/templates/workbench/wbSettings.ini index a0357ab0..b711ae7d 100644 --- a/ereuse_devicehub/templates/workbench/wbSettings.ini +++ b/ereuse_devicehub/templates/workbench/wbSettings.ini @@ -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}/ diff --git a/ereuse_devicehub/workbench/views.py b/ereuse_devicehub/workbench/views.py index 84dbba63..1b81c8f2 100644 --- a/ereuse_devicehub/workbench/views.py +++ b/ereuse_devicehub/workbench/views.py @@ -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':