Skip to content

Commit

Permalink
Fix call to axapi_call_v3() (ansible#17637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos authored and gundalow committed Sep 19, 2016
1 parent 991bd29 commit 881da2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ansible/module_utils/a10.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -141,4 +141,3 @@ def axapi_get_port_protocol(protocol):

def axapi_get_vport_protocol(protocol):
return AXAPI_VPORT_PROTOCOLS.get(protocol.lower(), None)

0 comments on commit 881da2b

Please sign in to comment.