diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/sources/edit/sources-edit.controller.js b/awx/ui/client/src/inventories-hosts/inventories/related/sources/edit/sources-edit.controller.js index 3ca385d1ea..5f18c1fd81 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/sources/edit/sources-edit.controller.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/sources/edit/sources-edit.controller.js @@ -158,9 +158,9 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString', varName = source + '_variables'; } - $scope[varName] = $scope[varName] === (null || undefined) ? '---' : $scope[varName]; + $scope[varName] = ParseVariableString(inventorySourceData + .source_vars); - ParseVariableString(inventorySourceData.source_vars); ParseTypeChange({ scope: $scope, field_id: varName,