1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-18 02:50:09 +03:00

B : Fix template VMs in Sunstone ()

This commit is contained in:
Sergio Betanzos 2020-02-24 17:30:57 +01:00 committed by GitHub
parent c78d33f185
commit a53478b42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -255,12 +255,13 @@ define(function(require) {
){
current = currentTemplate[0].VMTEMPLATE.TEMPLATE;
}
if(
current &&
current.NIC_ALIAS &&
!templateJSON.NIC_ALIAS
){
delete current.NIC_ALIAS;
if(current) {
if (current.NIC && !templateJSON.NIC) {
delete current.NIC;
}
if(current.NIC_ALIAS && !templateJSON.NIC_ALIAS) {
delete current.NIC_ALIAS;
}
}
}
if (this.action == "create") {