1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +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; preserveNetwork = true;
}else{ }else{
if(nic && nic.FROM && nic.FROM==='TEMPLATE'){ if (
nic && nic.FROM && nic.FROM === 'TEMPLATE' &&
nic["NETWORK_ID"] === val
) {
delete nic['FROM']; delete nic['FROM'];
nics.push(nic); nics.push(nic);
return; //continue return; //continue