modify template wb

This commit is contained in:
Cayo Puigdefabregas 2022-08-11 18:10:46 +02:00
parent 803c02ef35
commit cf6965f2e6
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,10 @@
DH_TOKEN = {{ token }} DH_TOKEN = {{ token }}
DH_URL = {{ url }} DH_URL = {{ url }}
{% if erease_basic %} {% if erease_basic %}
DH_HOST = {{ host }}
DH_DATABASE = {{ schema }}
DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/
WB_BENCHMARK = True WB_BENCHMARK = True
WB_STRESS_TEST = 0 WB_STRESS_TEST = 0
WB_SMART_TEST = short WB_SMART_TEST = short
@ -14,6 +18,10 @@ WB_ERASE_LEADING_ZEROS = False
WB_DEBUG = True WB_DEBUG = True
{% endif %} {% endif %}
{% if erease_sectors %} {% if erease_sectors %}
DH_HOST = {{ host }}
DH_DATABASE = {{ schema }}
DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/
WB_BENCHMARK = True WB_BENCHMARK = True
WB_STRESS_TEST = 0 WB_STRESS_TEST = 0
WB_SMART_TEST = short WB_SMART_TEST = short

View File

@ -72,6 +72,8 @@ class SettingsView(GenericMixin):
if 'erease' in self.opt: if 'erease' in self.opt:
url = "https://{}/actions/".format(app.config['HOST']) url = "https://{}/actions/".format(app.config['HOST'])
self.wbContext['url'] = url self.wbContext['url'] = url
self.wbContext['host'] = app.config['HOST']
self.wbContext['schema'] = app.config['SCHEMA']
if self.opt == 'erease_basic': if self.opt == 'erease_basic':
self.wbContext['erease_basic'] = True self.wbContext['erease_basic'] = True
if self.opt == 'erease_sectors': if self.opt == 'erease_sectors':