Skip to content

Commit 4ecc098

Browse files
authored
Merge pull request #383 from iceiilin/win-unattend
Error analyzing Windows unattend file when specifying two network devices
2 parents cee7637 + 9ed0c23 commit 4ecc098

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

data/templates/unattend_server2012.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
</component>
150150
<component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
151151
<% if( typeof networkDevices !== 'undefined' ) { %>
152+
<Interfaces>
152153
<% networkDevices.forEach(function(n) { %>
153154
<% cidr_bits = 0 %>
154155
<% dhcp_ipv4 = false %>
@@ -198,7 +199,6 @@
198199
<% } %>
199200
200201
201-
<Interfaces>
202202
<Interface wcm:action="add">
203203
<Identifier><%= n.device%></Identifier>
204204
<Ipv4Settings>
@@ -240,8 +240,8 @@
240240
</Routes>
241241
<% } %>
242242
</Interface>
243-
</Interfaces>
244243
<% }); %>
244+
</Interfaces>
245245
<% } %>
246246
</component>
247247

0 commit comments

Comments
 (0)