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 79935f6
Date Tue, 07 May 2013 18:12:13 GMT
Updated Branches:
  refs/heads/object_store 9f5d3c276 -> 79935f6ee


CLOUDSTACK-2351: object store - UI - zone wizard - add secondary storage step - replace addSecondaryStorage
API with new API addImageStore.


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

Branch: refs/heads/object_store
Commit: 79935f6eee6001e8aac5ea1a2c23b7e1bf7f695f
Parents: 9f5d3c2
Author: Jessica Wang <jessicawang@apache.org>
Authored: Tue May 7 11:11:30 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Tue May 7 11:11:30 2013 -0700

----------------------------------------------------------------------
 ui/scripts/zoneWizard.js |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/79935f6e/ui/scripts/zoneWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/zoneWizard.js b/ui/scripts/zoneWizard.js
index 8add9bb..96f9a5b 100755
--- a/ui/scripts/zoneWizard.js
+++ b/ui/scripts/zoneWizard.js
@@ -3384,13 +3384,19 @@
           var path = args.data.secondaryStorage.path;
           var url = nfsURL(nfs_server, path);
 
+          var data = {
+            provider: 'NFS',
+            zoneid: args.data.returnedZone.id,
+            url: url                   
+          };
+          
           $.ajax({
-            url: createURL("addSecondaryStorage&zoneId=" + args.data.returnedZone.id
+ "&url=" + todb(url)),
-            dataType: "json",
+            url: createURL('addImageStore'),
+            data: data,
             success: function(json) {
               complete({
                 data: $.extend(args.data, {
-                  returnedSecondaryStorage: json.addsecondarystorageresponse.secondarystorage
+                  returnedSecondaryStorage: json.addimagestoreresponse.secondarystorage
                 })
               });
             },


Mime
View raw message