1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5187: Fix when change nic on vm dialog

(cherry picked from commit 9c583bd3d28f63c71abdb899728582c82587b700)
This commit is contained in:
Sergio Betanzos 2020-12-11 13:46:38 +01:00 committed by Tino Vazquez
parent 6d16870c71
commit 54959ba267
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -209,7 +209,10 @@ define(function(require) {
}
preserveNetwork = true;
}else{
if(nic && nic.FROM && nic.FROM==='TEMPLATE'){
if (
nic && nic.FROM && nic.FROM === 'TEMPLATE' &&
nic["NETWORK_ID"] === val
) {
delete nic['FROM'];
nics.push(nic);
return; //continue