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

B #1795: Broken MEM into VM instantiation (#1796)

This commit is contained in:
Abel Coronado 2018-02-27 12:24:47 +01:00 committed by Tino Vázquez
parent 320893db4f
commit 175588a864

View File

@ -517,9 +517,9 @@ define(function(require) {
CapacityInputs.fill(capacityContext, template_json.VMTEMPLATE);
if (template_json.VMTEMPLATE.TEMPLATE.HYPERVISOR == "vcenter"){
$(".memory_input input", context).attr("pattern", "^([048]|\\d*[13579][26]|\\d*[24680][048])$");
$(".memory_input .mb_input input", context).attr("pattern", "^([048]|\\d*[13579][26]|\\d*[24680][048])$");
} else {
$(".memory_input input", context).removeAttr("pattern");
$(".memory_input .mb_input input", context).removeAttr("pattern");
}
var cpuCost = template_json.VMTEMPLATE.TEMPLATE.CPU_COST;