mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-12 20:00:58 +00: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user