This commit is contained in:
parent
351c12eed1
commit
4aef2d63ef
2 changed files with 6 additions and 1 deletions
|
@ -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"])
|
||||
|
|
|
@ -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
|
||||
--------
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue