Skip to content

Commit

Permalink
Update awx/main/models/inventory.py
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Foster <[email protected]>
  • Loading branch information
TheRealHaoLiu and fosterseth authored Jun 13, 2024
1 parent 2fa4ec0 commit ced97e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/models/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ced97e4

Please sign in to comment.