From ffdcd1f20d40789265f0e5edbf58043b2ca288a6 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Fri, 8 Jul 2016 11:14:01 -0400 Subject: [PATCH] Don't fetch credential for inventory groups when all we need is the name and it exists in the summary fields This implicitly solves #2803 by simply not doing the get that was causing the problem. --- .../src/inventories/manage/groups/groups-edit.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/inventories/manage/groups/groups-edit.controller.js b/awx/ui/client/src/inventories/manage/groups/groups-edit.controller.js index e7f7b67db3..4875e3abca 100644 --- a/awx/ui/client/src/inventories/manage/groups/groups-edit.controller.js +++ b/awx/ui/client/src/inventories/manage/groups/groups-edit.controller.js @@ -247,7 +247,7 @@ {inventory_script: inventorySourceData.source_script} ); if (inventorySourceData.credential){ - GroupManageService.getCredential(inventorySourceData.credential).then(res => $scope.credential_name = res.data.name); + $scope.credential_name = inventorySourceData.summary_fields.credential.name; } $scope = angular.extend($scope, groupData);