Skip to content

Commit 702dd70

Browse files
committed
Check if interface.mac is defined
Picked up during review; the value can now be empty (libvirt will add a mac if it wasn't supplied)
1 parent a385211 commit 702dd70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/vm.xml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<interface type='network'>
5252
<source network='{{ interface.network }}'/>
5353
{% endif %}
54-
{% if interface.mac %}
54+
{% if interface.mac is defined %}
5555
<mac address='{{ interface.mac }}'/>
5656
{% endif %}
5757
{# if the network configuration is invalid this can still appear in the xml #}

0 commit comments

Comments
 (0)