1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #17277 from privateip/eos

fixes two bugs in the eos shared module
This commit is contained in:
Peter Sprygada 2016-08-29 08:47:13 -04:00 committed by GitHub
commit f5df946e6e

View file

@ -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}(?:>|#) ?$"),