Fix Template Override
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 38s
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 38s
This commit is contained in:
parent
d944a75fb5
commit
c5f29374e1
@ -270,6 +270,7 @@ def generate_config():
|
||||
d.domain,
|
||||
d.ssl_enabled,
|
||||
d.ssl_cert_path,
|
||||
d.template_override,
|
||||
b.id as backend_id,
|
||||
b.name as backend_name
|
||||
FROM domains d
|
||||
@ -325,8 +326,10 @@ def generate_config():
|
||||
print(f"No servers found for backend {domain['backend_name']}") # Debug log
|
||||
continue
|
||||
|
||||
if domain['template_override']:
|
||||
backend_block = template_env.get_template(domain['template_override' + '.tpl']).render(
|
||||
if domain['template_override'] is not None:
|
||||
print(f"Template Override is set to: {domain['template_override']}")
|
||||
template_file = domain['template_override'] + ".tpl"
|
||||
backend_block = template_env.get_template(template_file).render(
|
||||
name=domain['backend_name'],
|
||||
servers=servers
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user