From 7411dac64daead190ea6a0566bc5cc7043768ea8 Mon Sep 17 00:00:00 2001 From: David Blaisonneau Date: Tue, 9 Aug 2016 11:32:23 +0200 Subject: correct maas-nodes templates when node architecture is not defined Signed-off-by: David Blaisonneau --- ci/config_tpl/maas_tpl/maas-nodes.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/config_tpl/maas_tpl/maas-nodes.yaml b/ci/config_tpl/maas_tpl/maas-nodes.yaml index 4b5a0ce0..dc341851 100644 --- a/ci/config_tpl/maas_tpl/maas-nodes.yaml +++ b/ci/config_tpl/maas_tpl/maas-nodes.yaml @@ -1,13 +1,13 @@ {% for node in lab.racks[0].nodes %} -{% if node.architecture=='x86_64' %} - - architecture: amd64/generic -{% endif %} - interfaces: + - interfaces: {% for nic in node.nics %} - mac_address: {{ nic.mac[0] }} mode: auto name: {{ nic.ifname }} {% endfor %} +{% if node.architecture=='x86_64' %} + architecture: amd64/generic +{% endif %} mac_addresses: {% for nic in node.nics %} - {{ nic.mac[0] }} -- cgit 1.2.3-korg