mirror of
https://github.com/ansible/awx.git
synced 2026-03-25 21:05:03 -02:30
Fixed extra_vars issue on Job Templates. We are now able to successfully send and receive extra_vars back and forth with the API without any errors or conversion issues.
This commit is contained in:
@@ -267,7 +267,7 @@ function JobTemplatesAdd ($scope, $rootScope, $compile, $location, $log, $routeP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data.extra_vars = json_data;
|
data.extra_vars = JSON.stringify(json_data, undefined, '\t');
|
||||||
Rest.setUrl(defaultUrl);
|
Rest.setUrl(defaultUrl);
|
||||||
Rest.post(data)
|
Rest.post(data)
|
||||||
.success( function(data, status, headers, config) {
|
.success( function(data, status, headers, config) {
|
||||||
@@ -489,7 +489,7 @@ function JobTemplatesEdit ($scope, $rootScope, $compile, $location, $log, $route
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data.extra_vars = json_data;
|
data.extra_vars = JSON.stringify(json_data, undefined, '\t');
|
||||||
Rest.setUrl(defaultUrl + id + '/');
|
Rest.setUrl(defaultUrl + id + '/');
|
||||||
Rest.put(data)
|
Rest.put(data)
|
||||||
.success( function(data, status, headers, config) {
|
.success( function(data, status, headers, config) {
|
||||||
|
|||||||
Reference in New Issue
Block a user