Merge pull request #39 from tcpcloud/stacklight
Stacklight
diff --git a/linux/network/interface.sls b/linux/network/interface.sls
index 07fb547..e8046ca 100644
--- a/linux/network/interface.sls
+++ b/linux/network/interface.sls
@@ -22,6 +22,8 @@
{%- for interface_name, interface in network.interface.iteritems() %}
+{%- set interface_name = interface.get('name', interface_name) %}
+
{%- if interface.get('managed', True) %}
{%- if grains.os_family in ['RedHat', 'Debian'] %}
@@ -83,7 +85,7 @@
linux_interface_{{ interface_name }}:
network.managed:
- enabled: {{ interface.enabled }}
- - name: {{ interface.get('name', interface_name) }}
+ - name: {{ interface_name }}
- type: {{ interface.type }}
{%- if interface.address is defined %}
{%- if grains.os_family == 'Debian' %}