1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Fix pylint errors

This commit is contained in:
Pierre-Louis Bonicoli 2020-03-11 17:30:07 +01:00 committed by Ryan Petrello
parent d8ac2f5263
commit f9d5860d63
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -106,6 +106,7 @@ hashi_ssh_inputs['metadata'] = [{
}]
hashi_ssh_inputs['required'].extend(['public_key', 'role'])
def handle_auth(**kwargs):
token = None
@ -118,6 +119,7 @@ def handle_auth(**kwargs):
return token
def approle_auth(**kwargs):
role_id = kwargs['role_id']
secret_id = kwargs['secret_id']
@ -139,6 +141,7 @@ def approle_auth(**kwargs):
token = resp.json()['auth']['client_token']
return token
def kv_backend(**kwargs):
token = handle_auth(**kwargs)
url = kwargs['url']