Skip to content

Commit 79935f6

Browse files
author
Jessica Wang
committed
CLOUDSTACK-2351: object store - UI - zone wizard - add secondary storage step - replace addSecondaryStorage API with new API addImageStore.
1 parent 9f5d3c2 commit 79935f6

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎ui/scripts/zoneWizard.js‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3384,13 +3384,19 @@
33843384
var path = args.data.secondaryStorage.path;
33853385
var url = nfsURL(nfs_server, path);
33863386

3387+
var data = {
3388+
provider: 'NFS',
3389+
zoneid: args.data.returnedZone.id,
3390+
url: url
3391+
};
3392+
33873393
$.ajax({
3388-
url: createURL("addSecondaryStorage&zoneId=" + args.data.returnedZone.id + "&url=" + todb(url)),
3389-
dataType: "json",
3394+
url: createURL('addImageStore'),
3395+
data: data,
33903396
success: function(json) {
33913397
complete({
33923398
data: $.extend(args.data, {
3393-
returnedSecondaryStorage: json.addsecondarystorageresponse.secondarystorage
3399+
returnedSecondaryStorage: json.addimagestoreresponse.secondarystorage
33943400
})
33953401
});
33963402
},

0 commit comments

Comments
 (0)