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:
parent
d8ac2f5263
commit
f9d5860d63
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user