diff --git a/awx/ui/static/js/helpers/JobSubmission.js b/awx/ui/static/js/helpers/JobSubmission.js index 183c8f9db5..3dab45c91e 100644 --- a/awx/ui/static/js/helpers/JobSubmission.js +++ b/awx/ui/static/js/helpers/JobSubmission.js @@ -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)