mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 21:37:42 -02:30
Avoid to repeat default value
This commit is contained in:
committed by
Ryan Petrello
parent
fdae3cd092
commit
d8ac2f5263
@@ -121,10 +121,7 @@ def handle_auth(**kwargs):
|
|||||||
def approle_auth(**kwargs):
|
def approle_auth(**kwargs):
|
||||||
role_id = kwargs['role_id']
|
role_id = kwargs['role_id']
|
||||||
secret_id = kwargs['secret_id']
|
secret_id = kwargs['secret_id']
|
||||||
auth_path = "approle"
|
auth_path = kwargs.get('auth_path') or 'approle'
|
||||||
|
|
||||||
if kwargs.get('auth_path'):
|
|
||||||
auth_path = kwargs.get('auth_path', "approle")
|
|
||||||
|
|
||||||
url = urljoin(kwargs['url'], 'v1')
|
url = urljoin(kwargs['url'], 'v1')
|
||||||
cacert = kwargs.get('cacert', None)
|
cacert = kwargs.get('cacert', None)
|
||||||
|
|||||||
Reference in New Issue
Block a user