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

This commit is contained in:
Daniel Molina committed 2015-04-06 16:29:56 +02:00
1 parent 29f239e988
commit 281db8b655
1 file changed
+12
+12
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,