mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-01 13:41:48 -05:00
AC-607 Fixed parsing of extra_vars on job_template. '' was not being recognized as !== stringified JSON.
This commit is contained in:
@@ -315,7 +315,8 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams,
|
||||
|
||||
if (fld == 'variables') {
|
||||
// Parse extra_vars, converting to YAML.
|
||||
if ($.isEmptyObject(data.extra_vars) || data.extra_vars == "\{\}" || data.extra_vars == "null") {
|
||||
if ($.isEmptyObject(data.extra_vars) || data.extra_vars == "\{\}" || data.extra_vars == "null"
|
||||
|| data.extra_vars == "" || data.extra_vars == null) {
|
||||
scope.variables = "---";
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user