From 559ab3564b8962488ea592056d6e654a22e1f980 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 28 May 2024 14:05:24 -0400 Subject: [PATCH] Include Kube credentials in the inventory source picker (#15223) --- awx/ui/src/components/Lookup/CredentialLookup.js | 4 ++-- .../Inventory/shared/InventorySourceSubForms/SCMSubForm.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/src/components/Lookup/CredentialLookup.js b/awx/ui/src/components/Lookup/CredentialLookup.js index 5256c20e6b..f1da6f391a 100644 --- a/awx/ui/src/components/Lookup/CredentialLookup.js +++ b/awx/ui/src/components/Lookup/CredentialLookup.js @@ -62,7 +62,7 @@ function CredentialLookup({ ? { credential_type: credentialTypeId } : {}; const typeKindParams = credentialTypeKind - ? { credential_type__kind: credentialTypeKind } + ? { credential_type__kind__in: credentialTypeKind } : {}; const typeNamespaceParams = credentialTypeNamespace ? { credential_type__namespace: credentialTypeNamespace } @@ -125,7 +125,7 @@ function CredentialLookup({ ? { credential_type: credentialTypeId } : {}; const typeKindParams = credentialTypeKind - ? { credential_type__kind: credentialTypeKind } + ? { credential_type__kind__in: credentialTypeKind } : {}; const typeNamespaceParams = credentialTypeNamespace ? { credential_type__namespace: credentialTypeNamespace } diff --git a/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js b/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js index 043ddcebe7..5b772bf08a 100644 --- a/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js +++ b/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/SCMSubForm.js @@ -87,7 +87,7 @@ const SCMSubForm = ({ autoPopulateProject }) => { /> )}