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:
commit
f5df946e6e
1 changed files with 2 additions and 2 deletions
|
@ -231,12 +231,12 @@ class Eapi(EosConfigMixin):
|
||||||
return response['result']
|
return response['result']
|
||||||
|
|
||||||
def get_config(self, **kwargs):
|
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)
|
Eapi = register_transport('eapi')(Eapi)
|
||||||
|
|
||||||
|
|
||||||
class Cli(CliBase, EosConfigMixin):
|
class Cli(EosConfigMixin, CliBase):
|
||||||
|
|
||||||
CLI_PROMPTS_RE = [
|
CLI_PROMPTS_RE = [
|
||||||
re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
|
re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
|
||||||
|
|
Loading…
Reference in a new issue