mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +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 = 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.organization_name = inventoryData.summary_fields.organization.name;
|
||||||
$scope.inventory_variables = inventoryData.variables === null || inventoryData.variables === '' ? '---' : ParseVariableString(inventoryData.variables);
|
$scope.inventory_variables = inventoryData.variables === null || inventoryData.variables === '' ? '---' : ParseVariableString(inventoryData.variables);
|
||||||
$scope.parseType = 'yaml';
|
$scope.parseType = 'yaml';
|
||||||
|
@ -73,7 +73,7 @@ function(i18n, InventoryCompletedJobsList) {
|
|||||||
type: 'lookup',
|
type: 'lookup',
|
||||||
list: 'CredentialList',
|
list: 'CredentialList',
|
||||||
basePath: 'credentials',
|
basePath: 'credentials',
|
||||||
sourceModel: 'credential',
|
sourceModel: 'insights_credential',
|
||||||
sourceField: 'name',
|
sourceField: 'name',
|
||||||
search: {
|
search: {
|
||||||
credential_type: 13 //insights
|
credential_type: 13 //insights
|
||||||
|
Loading…
Reference in New Issue
Block a user