You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/04/22 23:03:52 UTC
[27/50] [abbrv] git commit: updated refs/heads/ui-vm-affinity to
922b51c
Xenserver storage motion UI changes for systemVMs
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/130492d0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/130492d0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/130492d0
Branch: refs/heads/ui-vm-affinity
Commit: 130492d089a0c3158445cb4db96689a93088d332
Parents: 2f67dae
Author: Pranav Saxena <pr...@citrix.com>
Authored: Mon Apr 22 13:37:09 2013 +0530
Committer: Pranav Saxena <pr...@citrix.com>
Committed: Mon Apr 22 13:37:09 2013 +0530
----------------------------------------------------------------------
ui/scripts/system.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/130492d0/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 73bf3fd..a92506b 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -5267,14 +5267,16 @@
validation: { required: true },
select: function(args) {
$.ajax({
- url: createURL("listHosts&VirtualMachineId=" + args.context.systemVMs[0].id),
+ url: createURL("findHostsForMigration&VirtualMachineId=" + args.context.systemVMs[0].id),
dataType: "json",
async: true,
success: function(json) {
var hostObjs = json.listhostsresponse.host;
var items = [];
$(hostObjs).each(function() {
+ if(this.requiresStorageMotion == false){
items.push({id: this.id, description: (this.name + " (" + (this.suitableformigration? "Suitable": "Not Suitable") + ")")});
+ }
});
args.response.success({data: items});
}
@@ -6464,14 +6466,16 @@
validation: { required: true },
select: function(args) {
$.ajax({
- url: createURL("listHosts&VirtualMachineId=" + args.context.systemVMs[0].id),
+ url: createURL("findHostsForMigration&VirtualMachineId=" + args.context.systemVMs[0].id),
dataType: "json",
async: true,
success: function(json) {
var hostObjs = json.listhostsresponse.host;
var items = [];
$(hostObjs).each(function() {
+ if(this.requiresStorageMotion == false){
items.push({id: this.id, description: (this.name + " (" + (this.suitableformigration? "Suitable": "Not Suitable") + ")")});
+ }
});
args.response.success({data: items});
}