mirror of
https://github.com/ansible/awx.git
synced 2026-03-25 21:05:03 -02:30
Job Submission extra vars
When submitting a job to launch, the UI will collect extra_vars from the the JT. However with a recent change to make extra_vars include comments, the UI no longer receives the JT extra vars as a JSON obj, but rather as a yaml-unparsed string. So I am changing the way we parse these JT-extra_vars from 'json' to 'yaml' since we no longer expect to recieve a json-ified extra var object.
This commit is contained in:
@@ -39,7 +39,7 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
|
|||||||
Rest.get()
|
Rest.get()
|
||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
if(!Empty(data.extra_vars)){
|
if(!Empty(data.extra_vars)){
|
||||||
data.extra_vars = ToJSON('json', data.extra_vars, false);
|
data.extra_vars = ToJSON('yaml', data.extra_vars, false);
|
||||||
$.each(data.extra_vars, function(key,value){
|
$.each(data.extra_vars, function(key,value){
|
||||||
job_launch_data.extra_vars[key] = value;
|
job_launch_data.extra_vars[key] = value;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user