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)