mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 13:57:39 -02: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'):
|
if kwargs.get('token'):
|
||||||
token = kwargs['token']
|
token = kwargs['token']
|
||||||
else:
|
elif kwargs.get('role_id') and kwargs.get('secret_id'):
|
||||||
if kwargs.get('role_id') and kwargs.get('secret_id'):
|
|
||||||
token = approle_auth(**kwargs)
|
token = approle_auth(**kwargs)
|
||||||
else:
|
else:
|
||||||
raise Exception('Either Vault token or Auth parameters must be set')
|
raise Exception('Either Vault token or Auth parameters must be set')
|
||||||
|
|
||||||
return token
|
return token
|
||||||
|
|||||||
Reference in New Issue
Block a user