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

B #5983: fix min/max data type (#2307)

(cherry picked from commit 39ceb78969f5b191149c8073ebe310adafd18653)
This commit is contained in:
Jorge Miguel Lobo Escalona 2022-10-14 10:21:28 +02:00 committed by Tino Vázquez
parent 732c8e007f
commit 268ccdea3e

View File

@ -309,12 +309,12 @@ define(function(require) {
var min_vms = $('input[name="min_vms"]', context).val();
if (min_vms) {
role['min_vms'] = min_vms;
role['min_vms'] = parseInt(min_vms,10);
}
var max_vms = $('input[name="max_vms"]', context).val();
if (max_vms) {
role['max_vms'] = max_vms;
role['max_vms'] = parseInt(max_vms,10);
}
var cooldown = $('input[name="cooldown"]', context).val();