You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by se...@apache.org on 2013/07/12 09:51:09 UTC
[14/50] git commit: updated refs/heads/sdnextensions to bcfb4e6
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/742bc8dc
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/742bc8dc
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/742bc8dc
Branch: refs/heads/sdnextensions
Commit: 742bc8dc835f7aea6dee8f14afbe32637f578c72
Parents: 63206d6
Author: Mice Xia <mi...@tcloudcomputing.com>
Authored: Thu Jul 11 10:39:30 2013 +0800
Committer: Mice Xia <mi...@tcloudcomputing.com>
Committed: Thu Jul 11 11:01:07 2013 +0800
----------------------------------------------------------------------
ui/scripts/system.js | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/742bc8dc/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 1d7a59b..868d212d 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") + ")")});
@@ -6497,12 +6497,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});
}
@@ -7437,11 +7437,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") + ")")});
@@ -7985,11 +7985,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});