mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
fixing insights cred lookup on inventory
This commit is contained in:
parent
eecdc9eb5e
commit
1ad6d8d8b8
@ -30,7 +30,8 @@ function InventoriesEdit($scope, $location,
|
||||
|
||||
$scope = angular.extend($scope, inventoryData);
|
||||
|
||||
$scope.credential_name = (inventoryData.summary_fields.insights_credential && inventoryData.summary_fields.insights_credential.name) ? inventoryData.summary_fields.insights_credential.name : null;
|
||||
$scope.insights_credential_name = (inventoryData.summary_fields.insights_credential && inventoryData.summary_fields.insights_credential.name) ? inventoryData.summary_fields.insights_credential.name : null;
|
||||
$scope.insights_credential = (inventoryData.summary_fields.insights_credential && inventoryData.summary_fields.insights_credential.id) ? inventoryData.summary_fields.insights_credential.id : null;
|
||||
$scope.organization_name = inventoryData.summary_fields.organization.name;
|
||||
$scope.inventory_variables = inventoryData.variables === null || inventoryData.variables === '' ? '---' : ParseVariableString(inventoryData.variables);
|
||||
$scope.parseType = 'yaml';
|
||||
|
@ -73,7 +73,7 @@ function(i18n, InventoryCompletedJobsList) {
|
||||
type: 'lookup',
|
||||
list: 'CredentialList',
|
||||
basePath: 'credentials',
|
||||
sourceModel: 'credential',
|
||||
sourceModel: 'insights_credential',
|
||||
sourceField: 'name',
|
||||
search: {
|
||||
credential_type: 13 //insights
|
||||
|
Loading…
Reference in New Issue
Block a user