From d375560f1825d21e41a92fc2beddb9228f6460a9 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 6 Feb 2017 14:08:18 -0500 Subject: [PATCH] take into account inv org when getting custom inv src list --- awx/ui/client/src/shared/directives.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index 4b3cf6a7d9..42e26d5f78 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -520,7 +520,8 @@ function(ConfigurationUtils, i18n, $rootScope) { query = '?role_level=admin_role'; break; case 'inventory_script': - query = '?role_level=admin_role'; + console.log("Can we see what organization? ", scope); + query = '?role_level=admin_role&organization=' + scope.$resolve.inventoryData.summary_fields.organization.id; break; }