From 5f02b9269c50e17b6731fa94ddca342c2511991e Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 31 Jul 2017 16:41:45 -0400 Subject: [PATCH] fix source vars population --- .../related/sources/edit/sources-edit.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,