1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

B #5187: Fix when change nic on vm dialog

This commit is contained in:
Sergio Betanzos 2020-12-11 13:46:38 +01:00 committed by Tino Vázquez
parent 3ad30d2a7b
commit 9c583bd3d2

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