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 1af72afdef)
This commit is contained in:
Peter Sprygada 2017-10-24 21:59:49 -04:00 committed by Toshio Kuratomi
parent e7d8685643
commit bd624837fa

View file

@ -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)