1
0
Fork 0
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:
Peter Sprygada 2016-04-02 21:45:12 -04:00
parent dbd17322bf
commit 437beb001b

View file

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