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

(cherry picked from commit 175588a864)
This commit is contained in:
Abel Coronado authored and Tino Vazquez committed 2018-03-08 17:00:20 +01:00
1 parent 4425654fb6
commit 0709cfca76
1 file changed
+2 -2
@@ -405,9 +405,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;