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.
This commit is contained in:
Akita Noek 2016-07-08 11:14:01 -04:00
parent 33547259e2
commit ffdcd1f20d

View File

@ -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);