mirror of
https://github.com/ansible/awx.git
synced 2026-04-04 17:55:06 -02:30
Job Submission
The job submission should NOT send an empty extra_vars dict if no extra variable are collected as a result of the job submission prompts. I was under the impression that an empty extra vars dict would be disregarded. An empty extra_vars dict will in fact overwrite any extra_vars in the JT with a blank set of extra_vars
This commit is contained in:
@@ -78,6 +78,9 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
|
|||||||
if(!Empty(scope.credential)){
|
if(!Empty(scope.credential)){
|
||||||
job_launch_data.credential_id = scope.credential;
|
job_launch_data.credential_id = scope.credential;
|
||||||
}
|
}
|
||||||
|
if(jQuery.isEmptyObject(job_launch_data.extra_vars)===true){
|
||||||
|
delete job_launch_data.extra_vars;
|
||||||
|
}
|
||||||
|
|
||||||
Rest.setUrl(url);
|
Rest.setUrl(url);
|
||||||
Rest.post(job_launch_data)
|
Rest.post(job_launch_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user