summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2016-09-19 11:42:23 -0400
committerJohn R Barker <john@johnrbarker.com>2016-09-19 16:42:23 +0100
commit881da2b3f1aaf4dfaf7d3384d8ee188e9c6d512e (patch)
treecfcd71d716cabf2c00329ea6291b7262e73bfe30
parent991bd2908cdf728e5d0707e428bc29687e7d4e6a (diff)
downloadansible-881da2b3f1aaf4dfaf7d3384d8ee188e9c6d512e.tar.gz
Fix call to `axapi_call_v3()` (#17637)
Closes #17584
-rw-r--r--lib/ansible/module_utils/a10.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ansible/module_utils/a10.py b/lib/ansible/module_utils/a10.py
index 737919b463..82492a8595 100644
--- a/lib/ansible/module_utils/a10.py
+++ b/lib/ansible/module_utils/a10.py
@@ -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)
-