CLOUDSTACK-2351: object store - UI - infrastructure menu - secondary storage - Add Secondary Storage - S3 provider - when Create NFS Cache Storage is checked, call extra API createCacheStore.

This commit is contained in:
Jessica Wang 2013-05-10 10:25:37 -07:00
parent e444867e61
commit bf74de23c4
1 changed files with 24 additions and 0 deletions

View File

@ -10633,6 +10633,30 @@
args.response.error(parseXMLHttpResponse(json));
}
});
if(args.data.createNfsCache == 'on') {
var zoneid = args.data.nfsCacheZoneid;
var nfs_server = args.data.nfsCacheNfsServer;
var path = args.data.nfsCachePath;
var url = nfsURL(nfs_server, path);
var nfsCacheData = {
provider: 'NFS',
zoneid: zoneid,
url: url
};
$.ajax({
url: createURL('createCacheStore'),
data: nfsCacheData,
success: function(json) {
//do nothing
},
error: function(json) {
args.response.error(parseXMLHttpResponse(json));
}
});
}
}
else if(args.data.provider == 'Swift') {
$.ajax({