From 215eb6c69713386c88ab8334e57844c150d723aa Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Thu, 21 Dec 2017 16:56:11 +0100 Subject: [PATCH] B #1606: Size error when instantiate vCenter template (#1607) --- .../public/app/tabs/templates-tab/form-panels/instantiate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js index dbb44f3358..aa3ebb7090 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js @@ -517,9 +517,9 @@ define(function(require) { CapacityInputs.fill(capacityContext, template_json.VMTEMPLATE); if (template_json.VMTEMPLATE.TEMPLATE.HYPERVISOR == "vcenter"){ - $(".mb_input input", context).attr("pattern", "^([048]|\\d*[13579][26]|\\d*[24680][048])$"); + $(".memory_input input", context).attr("pattern", "^([048]|\\d*[13579][26]|\\d*[24680][048])$"); } else { - $(".mb_input input", context).removeAttr("pattern"); + $(".memory_input input", context).removeAttr("pattern"); } var cpuCost = template_json.VMTEMPLATE.TEMPLATE.CPU_COST;