From c2b552b3b2b31d1d7629e7d07b7cad3b62eda5f8 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Thu, 6 Jul 2017 12:01:46 -0400 Subject: [PATCH] Removed erroneous credential basepath line --- .../inventories/related/sources/add/sources-add.controller.js | 4 ---- .../related/sources/edit/sources-edit.controller.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/sources/add/sources-add.controller.js b/awx/ui/client/src/inventories-hosts/inventories/related/sources/add/sources-add.controller.js index 8a4e609784..e49f661884 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/sources/add/sources-add.controller.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/sources/add/sources-add.controller.js @@ -130,10 +130,6 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition', $scope.credentialBasePath = GetBasePath('credentials') + '?credential_type__kind__in=cloud,network'; - if (source === 'custom'){ - $scope.credentialBasePath = GetBasePath('inventory_script'); - } - if (source === 'ec2' || source === 'custom' || source === 'vmware' || source === 'openstack' || source === 'scm') { $scope.envParseType = 'yaml'; 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 5fec22bc2a..e9f953e4a0 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 @@ -349,10 +349,6 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString', $scope.credentialBasePath = GetBasePath('credentials') + '?credential_type__kind__in=cloud,network'; - if (source === 'custom'){ - $scope.credentialBasePath = GetBasePath('inventory_script'); - } - if (source === 'ec2' || source === 'custom' || source === 'vmware' || source === 'openstack' || source === 'scm') { $scope.envParseType = 'yaml';