From bd624837fa94a49fe50ecd1dee9082fd1b909816 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Tue, 24 Oct 2017 21:59:49 -0400 Subject: [PATCH] inserts enable cmd hash with auth_pass used (#32107) eapi transport was not passing the auth_pass to the remote device with it was provided. this fix will now insert the correct command hash into the jsonrpc request. fixes #30802 (cherry picked from commit 1af72afdefd421c5b2434d8c259257d5f0dade38) --- lib/ansible/module_utils/eos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py index 2cfb1fa2e9..d075c3874d 100644 --- a/lib/ansible/module_utils/eos.py +++ b/lib/ansible/module_utils/eos.py @@ -299,7 +299,7 @@ class Eapi: commands = to_list(commands) if self._enable: - commands.insert(0, 'enable') + commands.insert(0, self._enable) body = self._request_builder(commands, output) data = self._module.jsonify(body)