From 0047b0cc96718fbc257a929033dabd4dec513c37 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Wed, 12 Feb 2020 18:31:41 +0100 Subject: [PATCH] B #4178: Fix NIC aliases in VM templates (#4180) --- .../app/tabs/templates-tab/form-panels/create-common.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create-common.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create-common.js index e389c0957e..1d42570e78 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create-common.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create-common.js @@ -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});