mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Simplify test branches
This commit is contained in:
committed by
Ryan Petrello
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
|
||||
|
||||
Reference in New Issue
Block a user