diff --git a/awx/ui/client/src/inventories/manage/groups/groups-add.controller.js b/awx/ui/client/src/inventories/manage/groups/groups-add.controller.js index f7b8281447..7cc1920daf 100644 --- a/awx/ui/client/src/inventories/manage/groups/groups-add.controller.js +++ b/awx/ui/client/src/inventories/manage/groups/groups-add.controller.js @@ -99,7 +99,7 @@ CredentialList.basePath = credentialBasePath; LookUpInit({ scope: $scope, - url: GetBasePath('credentials') + (source === '' ? '' : '?kind=' + source), + url: credentialBasePath, form: form, list: CredentialList, field: 'credential',