summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/aci/plugins/httpapi
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-26 04:06:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-26 04:06:02 +0000
commite3eb94c23206603103f3c4faec6c227f59a1544c (patch)
treef2639459807ba88f55fc9c54d745bd7075d7f15c /ansible_collections/cisco/aci/plugins/httpapi
parentReleasing progress-linux version 9.4.0+dfsg-1~progress7.99u1. (diff)
downloadansible-e3eb94c23206603103f3c4faec6c227f59a1544c.tar.xz
ansible-e3eb94c23206603103f3c4faec6c227f59a1544c.zip
Merging upstream version 9.5.1+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cisco/aci/plugins/httpapi')
-rw-r--r--ansible_collections/cisco/aci/plugins/httpapi/aci.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/ansible_collections/cisco/aci/plugins/httpapi/aci.py b/ansible_collections/cisco/aci/plugins/httpapi/aci.py
index a0474576a..dfab2c14e 100644
--- a/ansible_collections/cisco/aci/plugins/httpapi/aci.py
+++ b/ansible_collections/cisco/aci/plugins/httpapi/aci.py
@@ -102,19 +102,6 @@ class HttpApi(HttpApiBase):
exc_login.path = path
raise
- def logout(self):
- method = "POST"
- path = "/api/aaaLogout.json"
- payload = {"aaaUser": {"attributes": {"name": self.connection.get_option("remote_user")}}}
- data = json.dumps(payload)
- try:
- response, response_data = self.connection.send(path, data, method=method)
- except Exception as exc_logout:
- msg = "Error on attempt to logout from APIC. {0}".format(exc_logout)
- raise ConnectionError(self._return_info("", method, path, msg))
- self.connection._auth = None
- self._verify_response(response, method, path, response_data)
-
def set_parameters(self):
connection_parameters = {}
for key in CONNECTION_KEYS: