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

B #1606: Size error when instantiate vCenter template (#1607)

This commit is contained in:
Abel Coronado 2017-12-21 16:56:11 +01:00 committed by Ruben S. Montero
parent 2e662cee62
commit 215eb6c697

View File

@ -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;