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