diff --git a/changelogs/fragments/571-permission-denied-error-handling.yml b/changelogs/fragments/571-permission-denied-error-handling.yml new file mode 100644 index 00000000..8f850733 --- /dev/null +++ b/changelogs/fragments/571-permission-denied-error-handling.yml @@ -0,0 +1,2 @@ +bugfixes: + - exos - Add error handling of ``Permission denied`` errors (https://github.com/ansible-collections/community.network/pull/571). diff --git a/plugins/terminal/exos.py b/plugins/terminal/exos.py index 6836cdb8..a2f39415 100644 --- a/plugins/terminal/exos.py +++ b/plugins/terminal/exos.py @@ -45,6 +45,7 @@ class TerminalModule(TerminalBase): re.compile(br"[%\S] ?Error: ?[\s]+", re.I), re.compile(br"[%\S] ?Informational: ?[\s]+", re.I), re.compile(br"%% Invalid .* at '\^' marker.", re.I), + re.compile(br"Permission denied", re.I), ] def on_open_shell(self):