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:
Jared Tabor 2014-11-26 13:18:19 -05:00
parent e1f25a0949
commit 86c717bca3
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ angular.module('CreateCustomInventoryHelper', [ 'Utilities', 'RestServices', 'Sc
CreateDialog({
id: 'custom-script-dialog',
title: 'Inventory Scripts',
title: 'Inventory Script',
target: 'custom-script-dialog',
scope: scope,
buttons: buttons,

View File

@ -45,7 +45,7 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
}
delete(job_launch_data.extra_vars);
if(!Empty(scope.credential)){
job_launch_data.credential = scope.credential;
job_launch_data.credential_id = scope.credential;
}
Rest.setUrl(url);
Rest.post(job_launch_data)