mirror of https://github.com/apache/cloudstack.git
new UI - rebootVirtualMachine API was changed recently (doesn't return embedded object any more). This is a temporary fix until API is fixed.
This commit is contained in:
parent
3de7680d1c
commit
0514fedea6
|
|
@ -690,7 +690,17 @@ var vmActionMap = {
|
|||
asyncJobResponse: "rebootvirtualmachineresponse",
|
||||
inProcessText: "Rebooting Instance....",
|
||||
afterActionSeccessFn: function(json, $midmenuItem1, id) {
|
||||
var jsonObj = json.queryasyncjobresultresponse.virtualmachine[0];
|
||||
//call listVirtualMachine to get embedded object until Bug 6751("rebootVirtualMachine API should return an embedded object") is fixed.
|
||||
var jsonObj;
|
||||
$.ajax({
|
||||
data: createURL("command=listVirtualMachines&id="+id),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
jsonObj = json.listvirtualmachinesresponse.virtualmachine[0];
|
||||
}
|
||||
});
|
||||
|
||||
vmToMidmenu(jsonObj, $midmenuItem1);
|
||||
vmToRightPanel($midmenuItem1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue