Avoid to repeat default value

This commit is contained in:
Pierre-Louis Bonicoli
2020-03-11 17:28:03 +01:00
committed by Ryan Petrello
parent fdae3cd092
commit d8ac2f5263

View File

@@ -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)