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

B #4178: Fix NIC aliases in VM templates (#4180)

This commit is contained in:
Sergio Betanzos 2020-02-12 18:31:41 +01:00 committed by GitHub
parent d4af8e2a76
commit 0047b0cc96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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