From 7a4ebc9e7ed872396c9152d6d8a7663a78da5cb4 Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:54:54 -0400 Subject: [PATCH] Update awx/main/models/inventory.py Co-authored-by: Seth Foster --- awx/main/models/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 998cda5e356c..2b96ed549f1f 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -1058,7 +1058,7 @@ def cloud_credential_validation(source, cred): return _('Credentials of type machine, source control, insights and vault are disallowed for custom inventory sources.') elif source == 'scm' and cred and cred.credential_type.kind in ('insights', 'vault'): return _('Credentials of type insights and vault are disallowed for scm inventory sources.') - elif source == 'openshift_virtualization' and cred and cred.credential_type.kind not in ('kubernetes'): + elif source == 'openshift_virtualization' and cred and cred.credential_type.kind != 'kubernetes': return _('Credentials of type kubernetes is requred for openshift_virtualization inventory sources.') return None