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

bug #3720: Do not sent unchanged values in the resize action

This commit is contained in:
Daniel Molina 2015-04-06 16:29:56 +02:00
parent 29f239e988
commit 281db8b655

View File

@ -2676,6 +2676,18 @@ function setupResizeCapacityDialog(){
var data = {};
addSectionJSON(data, this);
if (data["CPU"] == $('#cpu_info').text()) {
delete data["CPU"];
};
if (data["MEMORY"] == $('#memory_info').attr("one_value")) {
delete data["MEMORY"];
};
if (data["VCPU"] == $('#vcpu_info').text()) {
delete data["VCPU"];
};
var obj = {
"vm_template": data,
"enforce": enforce,