mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 19:32:47 +00:00
committed by
John R Barker
parent
991bd2908c
commit
881da2b3f1
@@ -91,7 +91,7 @@ def axapi_authenticate(module, base_url, username, password):
|
||||
def axapi_authenticate_v3(module, base_url, username, password):
|
||||
url = base_url
|
||||
auth_payload = {"credentials": {"username": username, "password": password}}
|
||||
result = axapi_call_v3(module, url, post=auth_payload)
|
||||
result = axapi_call_v3(module, url, method='POST', body=auth_payload)
|
||||
if axapi_failure(result):
|
||||
return module.fail_json(msg=result['response']['err']['msg'])
|
||||
signature = result['authresponse']['signature']
|
||||
@@ -141,4 +141,3 @@ def axapi_get_port_protocol(protocol):
|
||||
|
||||
def axapi_get_vport_protocol(protocol):
|
||||
return AXAPI_VPORT_PROTOCOLS.get(protocol.lower(), None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user