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