mirror of https://github.com/apache/cloudstack.git
explicit dedication - dedicatePod API call action item integration
This commit is contained in:
parent
55d3176332
commit
fd72c12967
|
|
@ -8775,16 +8775,31 @@
|
|||
}
|
||||
},
|
||||
action: function(args) {
|
||||
|
||||
//EXPLICIT DEDICATION
|
||||
var array2 = [];
|
||||
if(args.data.accountId != "")
|
||||
array2.push("&accountId=" +todb(args.data.accountId));
|
||||
|
||||
$.ajax({
|
||||
url: createURL("dedicatePod&podId=" + args.context.pods[0].id),
|
||||
url: createURL("dedicatePod&podId=" + args.context.pods[0].id + "&domainId=" +args.data.domainId + array2.join("")),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var item = json.dedicatepodresponse.pod;
|
||||
args.response.success({
|
||||
actionFilter: podActionfilter,
|
||||
data:item
|
||||
});
|
||||
}
|
||||
var jid = json.dedicatepodresponse.jobid;
|
||||
args.response.success({
|
||||
_custom:
|
||||
{ jobId: jid
|
||||
},
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
},
|
||||
actionFilter:podActionfilter
|
||||
});
|
||||
},
|
||||
error:function(json){
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue