mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
Fix to properly handle empty extra_vars value. No longer sending 'null' to API.
This commit is contained in:
parent
d6bcd885c3
commit
9ff7f05dfc
@ -413,7 +413,7 @@ function JobTemplatesEdit ($scope, $rootScope, $compile, $location, $log, $route
|
||||
}
|
||||
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 = "") {
|
||||
scope.variables = "---";
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user