diff options
author | Matthew Jones <majones@redhat.com> | 2024-05-28 20:05:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-28 20:05:24 +0200 |
commit | 559ab3564b8962488ea592056d6e654a22e1f980 (patch) | |
tree | b479d14097a4918a08ad438fefb956631650285b | |
parent | Update test so that DAB change can merge (#15222) (diff) | |
download | awx-559ab3564b8962488ea592056d6e654a22e1f980.tar.xz awx-559ab3564b8962488ea592056d6e654a22e1f980.zip |
Include Kube credentials in the inventory source picker (#15223)
-rw-r--r-- | awx/ui/src/components/Lookup/CredentialLookup.js | 4 | ||||
-rw-r--r-- | awx/ui/src/screens/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 }) => { /> )} <CredentialLookup - credentialTypeKind="cloud" + credentialTypeKind="cloud,kubernetes" label={t`Credential`} value={credentialField.value} onChange={handleCredentialUpdate} |