cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/object_store to bf74de2
Date Fri, 10 May 2013 17:27:48 GMT
Updated Branches:
  refs/heads/object_store e444867e6 -> bf74de23c


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.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bf74de23
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bf74de23
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bf74de23

Branch: refs/heads/object_store
Commit: bf74de23c4fe5aeb2780c4f628089b29401f10f2
Parents: e444867
Author: Jessica Wang <jessicawang@apache.org>
Authored: Fri May 10 10:25:37 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Fri May 10 10:27:19 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bf74de23/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index cfa591d..c81032f 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -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({


Mime
View raw message