Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Oct 15, 2024
1 parent 8cedb6e commit fe9b3e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions awx/main/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
'insights',
'terraform',
'openshift_virtualization',
'controller_downstream',
'rhv_downstream',
'openshift_virtualization_downstream',
'insights_downstream',
'satellite6_downstream',
'controller_supported',
'rhv_supported',
'openshift_virtualization_supported',
'insights_supported',
'satellite6_supported',
)

PRIVILEGE_ESCALATION_METHODS = [
Expand Down
4 changes: 4 additions & 0 deletions awx/main/tests/functional/test_inventory_source_injectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ def generate_fake_var(element):

def credential_kind(source):
"""Given the inventory source kind, return expected credential kind"""
if source.endswith('_supported'):
source = source[:-10]

if source == 'openshift_virtualization':
return 'kubernetes_bearer_token'

return source.replace('ec2', 'aws')


Expand Down

0 comments on commit fe9b3e1

Please sign in to comment.