Issue found by the test created in previous commit.
@@ -108,7 +108,7 @@
{% endif %}
{% if device.domain %}
- <backenddomain name="{{ domain }}" />
+ <backenddomain name="{{ device.domain }}" />
{% if device.script %}