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

B #1483: Removed capacity attribute when it's empty

This commit is contained in:
juanmont 2017-11-24 12:14:24 +01:00 committed by Ruben S. Montero
parent 4827198ebb
commit 700f544439

View File

@ -262,7 +262,9 @@ define(function(require) {
host_json["host"]["region_name"] = region_name;
host_json["host"]["ec2_secret"] = ec2_secret;
host_json["host"]["ec2_access"] = ec2_access;
host_json["host"]["capacity"] = capacity;
if (capacity.length > 0){
host_json["host"]["capacity"] = capacity;
}
}
//Create the OpenNebula.Host.
//If it is successfull we refresh the list.