mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
B #1483: Removed capacity attribute when it's empty
(cherry picked from commit 700f544439)
This commit is contained in:
1 parent
773e90b400
commit
0bb1cd3b48
1 file changed
+3
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user