mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Simplify test branches
This commit is contained in:
parent
9d85e8655d
commit
139384acc4
@ -111,10 +111,9 @@ def handle_auth(**kwargs):
|
||||
|
||||
if kwargs.get('token'):
|
||||
token = kwargs['token']
|
||||
else:
|
||||
if kwargs.get('role_id') and kwargs.get('secret_id'):
|
||||
elif kwargs.get('role_id') and kwargs.get('secret_id'):
|
||||
token = approle_auth(**kwargs)
|
||||
else:
|
||||
else:
|
||||
raise Exception('Either Vault token or Auth parameters must be set')
|
||||
|
||||
return token
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user