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:
parent
29f239e988
commit
281db8b655
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user