cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject git commit: updated refs/heads/4.2 to 9dbe5ec
Date Thu, 11 Jul 2013 02:54:45 GMT
Updated Branches:
  refs/heads/4.2 633335321 -> 9dbe5ec70


fix CLOUDSTACK-1852, use findHostsForMigration to list available hosts for migration


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

Branch: refs/heads/4.2
Commit: 9dbe5ec7068b9f73b822a43bd2852cf0f799f463
Parents: 6333353
Author: Mice Xia <mice_xia@tcloudcomputing.com>
Authored: Thu Jul 11 10:39:30 2013 +0800
Committer: Mice Xia <mice_xia@tcloudcomputing.com>
Committed: Thu Jul 11 10:41:42 2013 +0800

----------------------------------------------------------------------
 ui/scripts/system.js | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9dbe5ec7/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index f4badbe..48874db 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -2628,11 +2628,11 @@
                               validation: { required: true },
                               select: function(args) {
                                 $.ajax({
-                                  url: createURL("listHosts&VirtualMachineId=" + args.context.routers[0].id),
+                                  url: createURL("findHostsForMigration&VirtualMachineId="
+ args.context.routers[0].id),
                                   dataType: "json",
                                   async: true,
                                   success: function(json) {
-                                    var hostObjs = json.listhostsresponse.host;
+                                    var hostObjs = json.findhostsformigrationresponse.host;
                                     var items = [];
                                     $(hostObjs).each(function() {
                                       items.push({id: this.id, description: (this.name +
" (" + (this.suitableformigration? "Suitable": "Not Suitable") + ")")});
@@ -3072,11 +3072,11 @@
                               validation: { required: true },
                               select: function(args) {
                                 $.ajax({
-                                  url: createURL("listHosts&VirtualMachineId=" + args.context.internallbinstances[0].id),
+                                  url: createURL("findHostsForMigration&VirtualMachineId="
+ args.context.internallbinstances[0].id),
                                   dataType: "json",
                                   async: true,
                                   success: function(json) {
-                                    var hostObjs = json.listhostsresponse.host;
+                                    var hostObjs = json.findhostsformigrationresponse.host;
                                     var items = [];
                                     $(hostObjs).each(function() {
                                       items.push({id: this.id, description: (this.name +
" (" + (this.suitableformigration? "Suitable": "Not Suitable") + ")")});
@@ -3645,11 +3645,11 @@
                               validation: { required: true },
                               select: function(args) {
                                 $.ajax({
-                                  url: createURL("listHosts&VirtualMachineId=" + args.context.routers[0].id),
+                                  url: createURL("findHostsForMigration&VirtualMachineId="
+ args.context.routers[0].id),
                                   dataType: "json",
                                   async: true,
                                   success: function(json) {
-                                    var hostObjs = json.listhostsresponse.host;
+                                    var hostObjs = json.findhostsformigrationresponse.host;
                                     var items = [];
                                     $(hostObjs).each(function() {
                                       items.push({id: this.id, description: (this.name +
" (" + (this.suitableformigration? "Suitable": "Not Suitable") + ")")});
@@ -6500,12 +6500,12 @@
                                       dataType: "json",
                                       async: true,
                                       success: function(json) {
-                                        var hostObjs = json.listhostsresponse.host;
+                                        var hostObjs = json.findhostsformigrationresponse.host;
                                         var items = [];
                                         $(hostObjs).each(function() {
                                           if(this.requiresStorageMotion == false){
-                                          items.push({id: this.id, description: (this.name
+ " (" + (this.suitableformigration? "Suitable": "Not Suitable") + ")")});
-                                           }
+                                            items.push({id: this.id, description: (this.name
+ " (" + (this.suitableformigration? "Suitable": "Not Suitable") + ")")});
+                                          }
                                         });
                                         args.response.success({data: items});
                                       }
@@ -7440,11 +7440,11 @@
                       validation: { required: true },
                       select: function(args) {
                         $.ajax({
-                          url: createURL("listHosts&VirtualMachineId=" + args.context.routers[0].id),
+                          url: createURL("findHostsForMigration&VirtualMachineId=" +
args.context.routers[0].id),
                           dataType: "json",
                           async: true,
                           success: function(json) {
-                            var hostObjs = json.listhostsresponse.host;
+                            var hostObjs = json.findhostsformigrationresponse.host;
                             var items = [];
                             $(hostObjs).each(function() {
                               items.push({id: this.id, description: (this.name + " (" + (this.suitableformigration?
"Suitable": "Not Suitable") + ")")});
@@ -7988,11 +7988,11 @@
                           dataType: "json",
                           async: true,
                           success: function(json) {
-                            var hostObjs = json.listhostsresponse.host;
+                            var hostObjs = json.findhostsformigrationresponse.host;
                             var items = [];
                             $(hostObjs).each(function() {
                               if(this.requiresStorageMotion == false){
-                              items.push({id: this.id, description: (this.name + " (" + (this.suitableformigration?
"Suitable": "Not Suitable") + ")")});
+                                items.push({id: this.id, description: (this.name + " (" +
(this.suitableformigration? "Suitable": "Not Suitable") + ")")});
                               }
                             });
                             args.response.success({data: items});


Mime
View raw message