1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

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

(cherry picked from commit 0047b0cc96)
This commit is contained in:
Sergio Betanzos 2020-02-12 18:31:41 +01:00 committed by Tino Vazquez
parent 76d76aac2e
commit 3acf824d49
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

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});