mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
This commit is contained in:
parent
1dd55acbc2
commit
1af72afdef
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ class Eapi:
|
||||||
commands = to_list(commands)
|
commands = to_list(commands)
|
||||||
|
|
||||||
if self._enable:
|
if self._enable:
|
||||||
commands.insert(0, 'enable')
|
commands.insert(0, self._enable)
|
||||||
|
|
||||||
body = self._request_builder(commands, output)
|
body = self._request_builder(commands, output)
|
||||||
data = self._module.jsonify(body)
|
data = self._module.jsonify(body)
|
||||||
|
|
Loading…
Reference in a new issue