mirror of https://github.com/apache/cloudstack.git
Xenserver storage motion UI changes for systemVMs
This commit is contained in:
parent
2f67dae711
commit
130492d089
|
|
@ -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});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue