mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
Inventory add/edit group->filter custom inv by org
On the inventory page, if you're adding/editing a group with source is custom, the lookup for an inventory script should be filtered by the organization that is associated with that inventory
This commit is contained in:
@@ -259,7 +259,8 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
$('#source_form').addClass('squeeze');
|
$('#source_form').addClass('squeeze');
|
||||||
}
|
}
|
||||||
if(scope.source.value==="custom"){
|
if(scope.source.value==="custom"){
|
||||||
invUrl = GetBasePath('inventory_scripts');
|
// need to filter the possible custom scripts by the organization defined for the current inventory
|
||||||
|
invUrl = GetBasePath('inventory_scripts') + '?organization='+scope.$parent.inventory.organization;
|
||||||
LookUpInit({
|
LookUpInit({
|
||||||
url: invUrl,
|
url: invUrl,
|
||||||
scope: scope,
|
scope: scope,
|
||||||
|
|||||||
Reference in New Issue
Block a user