Skip to content

Commit

Permalink
Add "Permission denied" error handling for Extreme Exos (#571)
Browse files Browse the repository at this point in the history
* Add "Permission denied" error handling for Extreme Exos

* Add changelog fragment
  • Loading branch information
Thorbijoern authored Feb 21, 2024
1 parent fd17393 commit 4dffff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/571-permission-denied-error-handling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- exos - Add error handling of ``Permission denied`` errors (https://github.com/ansible-collections/community.network/pull/571).
1 change: 1 addition & 0 deletions plugins/terminal/exos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 4dffff1

Please sign in to comment.