[DEBIAN] fix DNS template
All checks were successful
/ test (push) Successful in 13s

This commit is contained in:
Michaël Ricart 2025-02-28 11:03:49 +01:00
parent 351c12eed1
commit 4aef2d63ef
2 changed files with 6 additions and 1 deletions

View file

@ -31,7 +31,7 @@ def parse_debian(content):
if current_section:
result[current_section] += line + "\n"
for section in result:
if section in ["services","routes", "docker"]:
if section in ["resolvconf","services","routes", "docker"]:
result[section] = loads(result[section])
result["ip"] = parse_ip(result["ip"])
result["os"] = loads(result["version"])

View file

@ -21,6 +21,11 @@ destination netmask gateway interface
{{ "{:<12}".format(route["destination"]) }} {{ "{:<15}".format(route["genmask"]) }} {{ "{:<15}".format(route["gateway"]) }} {{ route["iface"] }}{% endfor %}
============ =============== =============== ==============
{% if resolvconf %}DNS
###
{{ "{}".format(resolvconf["nameserver"]) }}{% endif %}
services
--------