Skip to content

Commit f342cf3

Browse files
authored
ui: Fix netowrkid not passed in deployvm (#6711)
Fixes the issue of the networkid not being passed when deploying a VM This is caused when the first template selected is a deploy-as-is one and the nicToNetworkSelection not being reset when selecting a new template
1 parent fe16be0 commit f342cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/compute/DeployVM.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2158,6 +2158,7 @@ export default {
21582158
},
21592159
fetchTemplateNics (template) {
21602160
var nics = []
2161+
this.nicToNetworkSelection = []
21612162
if (template && template.deployasisdetails && Object.keys(template.deployasisdetails).length > 0) {
21622163
var keys = Object.keys(template.deployasisdetails)
21632164
keys = keys.filter(key => key.startsWith('network-'))
@@ -2169,7 +2170,6 @@ export default {
21692170
return a.InstanceID - b.InstanceID
21702171
})
21712172
if (this.options.networks && this.options.networks.length > 0) {
2172-
this.nicToNetworkSelection = []
21732173
for (var i = 0; i < nics.length; ++i) {
21742174
var nic = nics[i]
21752175
nic.id = nic.InstanceID

0 commit comments

Comments
 (0)