mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
Simplify code
This commit is contained in:
parent
92d8ebddd9
commit
69493cbd25
1 changed files with 3 additions and 1 deletions
|
@ -567,7 +567,9 @@ secure_log_date_format = %b %e
|
|||
list = {% for interface in net_interface_list.splitlines() %}{% if loop.index > 1 %}, {% endif %}{{ interface.split(',')[0] }}{% endfor %}
|
||||
<desc>
|
||||
{%- for interface in net_interface_list.splitlines() %}
|
||||
{{ interface.split(',')[0] }} = Interface {{ interface.split(',')[0] }}, 0, {{ interface.split(',')[1] }}
|
||||
{%- set interface_name = interface.split(',')[0] %}
|
||||
{%- set interface_speed = interface.split(',')[1] %}
|
||||
{{ interface_name }} = Interface {{ interface_name }}, 0, {{ interface_speed }}
|
||||
{%- endfor %}
|
||||
</desc>
|
||||
gateway = {{ net_gateway }}
|
||||
|
|
Loading…
Reference in a new issue