
On 01/23/2014 10:41 PM, Sheldon wrote:
comment below:
On 01/16/2014 10:03 AM, zhoumeina wrote:
+ }, + + getStorageServers: function(type, suc, err) { + var url = kimchi.url + 'storageservers?target_type=' + type; according to [PATCHv9 03/10] Storage server: Update API.md
target_type -> _target_type ?
Yes. =/ It passed away from my eyes. Could you send a patch to fix it?
+ kimchi.requestJSON({ + url : url, + type : 'GET', + contentType : 'application/json', + dataType : 'json', + success : suc, + error : err + }); + }, + + getStorageTargets: function(server,type, suc, err) { + var url = kimchi.url + 'storageservers/' + server + '/storagetargets?target_type=' + type; ^ + kimchi.requestJSON({ + url : url, + type : 'GET', + contentType : 'application/json', + timeout: 2000, + dataType : 'json', + success : suc, + error : err + }); }