mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 14:25:05 -02:30
Job submission
changed the 'credential' to 'credential_id' on the POST to the job launch endpoint, per request from Matt
This commit is contained in:
@@ -84,7 +84,7 @@ angular.module('CreateCustomInventoryHelper', [ 'Utilities', 'RestServices', 'Sc
|
|||||||
|
|
||||||
CreateDialog({
|
CreateDialog({
|
||||||
id: 'custom-script-dialog',
|
id: 'custom-script-dialog',
|
||||||
title: 'Inventory Scripts',
|
title: 'Inventory Script',
|
||||||
target: 'custom-script-dialog',
|
target: 'custom-script-dialog',
|
||||||
scope: scope,
|
scope: scope,
|
||||||
buttons: buttons,
|
buttons: buttons,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
|
|||||||
}
|
}
|
||||||
delete(job_launch_data.extra_vars);
|
delete(job_launch_data.extra_vars);
|
||||||
if(!Empty(scope.credential)){
|
if(!Empty(scope.credential)){
|
||||||
job_launch_data.credential = scope.credential;
|
job_launch_data.credential_id = scope.credential;
|
||||||
}
|
}
|
||||||
Rest.setUrl(url);
|
Rest.setUrl(url);
|
||||||
Rest.post(job_launch_data)
|
Rest.post(job_launch_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user