mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Corrects regression in debian_ip/debian_eth.jinja
Not all interfaces will have an address. Bug #38042
This commit is contained in:
parent
9661258f22
commit
4de2cb2805
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
{%endif%}{% if data.hotplug %}allow-hotplug {{name}}
|
||||
{%endif%}{%- if data.data['inet'] -%}
|
||||
{%- set interface = data.data['inet'] -%}
|
||||
{% if interface.proto and interface.address %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{% if interface.proto %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{%endif%}{% if interface.proto == 'dhcp' %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{%endif %}{% if interface.hwaddress %} hwaddress {{interface.hwaddress}}
|
||||
{%endif%}{% if interface.vlan_raw_device %} vlan-raw-device {{interface.vlan_raw_device}}
|
||||
|
|
Loading…
Add table
Reference in a new issue