-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pybridge: Improve beiboot error reporting for fatal login failures
After all SSH authentication attemps fail, e.g. entering the wrong password three times, ferny throws an InteractionError. Merely exiting cockpit-beiboot gets interpreted as "Internal error" which is unfriendly. Translate the most common errors (DNS resolution and and authentication failure) to proper cockpit protocol error codes, so that they get presented properly and translated. As this involves parsing SSH output, keep the `internal-error` fallback for everything else.
- Loading branch information
1 parent
5280ff8
commit f21866b
Showing
3 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters