From 5ce032bf6d5364a71fb10b1308ef96251c54a55e Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Sun, 28 Aug 2016 22:58:52 -0400 Subject: [PATCH] fixes two bugs in the eos shared module * fixes issue with correctly returning the running-config over eapi when a call was made to get_config() * fixes issue the MRO in Cli transport --- lib/ansible/module_utils/eos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py index 0dd58c082d3..1a79b948a89 100644 --- a/lib/ansible/module_utils/eos.py +++ b/lib/ansible/module_utils/eos.py @@ -231,12 +231,12 @@ class Eapi(EosConfigMixin): return response['result'] def get_config(self, **kwargs): - return self.run_commands(['show running-config'], format='text')[0] + return self.execute(['show running-config'], format='text')[0]['output'] Eapi = register_transport('eapi')(Eapi) -class Cli(CliBase, EosConfigMixin): +class Cli(EosConfigMixin, CliBase): CLI_PROMPTS_RE = [ re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),