1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

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:
Jared Tabor 2015-01-05 18:18:49 -05:00
parent 86a47bb11c
commit 6fccee404a

View File

@ -78,6 +78,9 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
if(!Empty(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.post(job_launch_data)