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

fix eos terminal plugin to recognize ospf error message (#32039)

The eos terminal plugin did not correctly catch the error message
returned with trying to configure more than one ospf instance.  This
change updates the terminal plugin to catch that scenario
This commit is contained in:
Peter Sprygada 2017-10-23 17:27:58 -04:00 committed by GitHub
parent b004a6373a
commit 905d71d46a

View file

@ -44,7 +44,8 @@ class TerminalModule(TerminalBase):
re.compile(br"connection timed out", re.I),
re.compile(br"[^\r\n]+ not found", re.I),
re.compile(br"'[^']' +returned error code: ?\d+"),
re.compile(br"[^\r\n]\/bin\/(?:ba)?sh")
re.compile(br"[^\r\n]\/bin\/(?:ba)?sh"),
re.compile(br"% More than \d+ OSPF instance", re.I)
]
def on_open_shell(self):