From f19473175b9b697494d86559f6442e7d3076cfa3 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 20 Aug 2015 09:59:32 -0700 Subject: [PATCH] saving/editing inventory scripts lookup --- awx/ui/client/src/helpers/Groups.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/awx/ui/client/src/helpers/Groups.js b/awx/ui/client/src/helpers/Groups.js index 9ae9fd138b..067b4e2a68 100644 --- a/awx/ui/client/src/helpers/Groups.js +++ b/awx/ui/client/src/helpers/Groups.js @@ -1027,9 +1027,10 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', listGenerator.name sources_scope.source_vars = ParseVariableString(data.source_vars); master.source_vars = sources_scope.variables; } - // else if(fld === "source_script"){ - // sources_scope[fld] = data - // } + else if(fld === "inventory_script"){ + // the API stores it as 'source_script', we call it inventory_script + data.summary_fields['inventory_script'] = data.summary_fields.source_script; + } else if (data[fld] !== undefined) { sources_scope[fld] = data[fld]; @@ -1275,7 +1276,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', listGenerator.name credential: sources_scope.credential, overwrite: sources_scope.overwrite, overwrite_vars: sources_scope.overwrite_vars, - source_script: sources_scope.source_script, + source_script: sources_scope.inventory_script, update_on_launch: sources_scope.update_on_launch, update_cache_timeout: (sources_scope.update_cache_timeout || 0) };