mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
adds commands key to fail message in eos shared module
The commands the lists the set of commands it tried to configure when using eapi as a transport
This commit is contained in:
parent
dbd17322bf
commit
437beb001b
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class Eapi(object):
|
|||
response = self.module.from_json(response.read())
|
||||
if 'error' in response:
|
||||
err = response['error']
|
||||
self.module.fail_json(msg='json-rpc error', **err)
|
||||
self.module.fail_json(msg='json-rpc error', commands=commands, **err)
|
||||
|
||||
if self.enable:
|
||||
response['result'].pop(0)
|
||||
|
|
Loading…
Add table
Reference in a new issue