From 437beb001b0cd630f9c9b5c467fdf3be98db63de Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Sat, 2 Apr 2016 21:45:12 -0400 Subject: [PATCH] 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 --- lib/ansible/module_utils/eos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py index 5167d1abc0..7ff043f247 100644 --- a/lib/ansible/module_utils/eos.py +++ b/lib/ansible/module_utils/eos.py @@ -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)