mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Fix pylint errors
This commit is contained in:
committed by
Ryan Petrello
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']
|
||||
|
||||
Reference in New Issue
Block a user