From 1af72afdefd421c5b2434d8c259257d5f0dade38 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 --- 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 4da1a0b7f9..9d58159c75 100644 --- a/lib/ansible/module_utils/eos.py +++ b/lib/ansible/module_utils/eos.py @@ -296,7 +296,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)