mirror of https://github.com/apache/cloudstack.git
Add pod action: Add custom 'appendData' to action
For use with plugin API, if 'appendData' is passed in args, always append this data to the end of the API call. Used when plugin adds new attributes that need to be passed via the API.
This commit is contained in:
parent
1c482b5c3b
commit
a9b903d597
|
|
@ -7634,6 +7634,7 @@
|
|||
|
||||
action: function(args) {
|
||||
var array1 = [];
|
||||
var appendData = args.data.append ? args.data.append : {};
|
||||
|
||||
array1.push("&zoneId=" + args.data.zoneid);
|
||||
array1.push("&name=" + todb(args.data.podname));
|
||||
|
|
@ -7647,6 +7648,7 @@
|
|||
|
||||
$.ajax({
|
||||
url: createURL("createPod" + array1.join("")),
|
||||
data: appendData,
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var item = json.createpodresponse.pod;
|
||||
|
|
|
|||
Loading…
Reference in New Issue