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
pull/15257/head
Peter Sprygada 9 years ago
parent dbd17322bf
commit 437beb001b

@ -129,7 +129,7 @@ class Eapi(object):
response = self.module.from_json(response.read()) response = self.module.from_json(response.read())
if 'error' in response: if 'error' in response:
err = response['error'] 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: if self.enable:
response['result'].pop(0) response['result'].pop(0)

Loading…
Cancel
Save