Skip to content

Commit

Permalink
meta: respond to ssh_info queries early
Browse files Browse the repository at this point in the history
If the user opens the help screen early (i.e., when Subiquity starts
with a crash report), the installer will get stuck "Getting[ing] SSH
info". This is because the meta/ssh_info GET handler does not respond
until all the controllers have started.

Ensure it can respond early.

Signed-off-by: Olivier Gayot <[email protected]>
(cherry picked from commit 41abc35)
  • Loading branch information
ogayot committed Aug 22, 2024
1 parent 22cfeb6 commit 845f7cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subiquity/common/apidef.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def POST() -> None:
"""Restart the server process."""

class ssh_info:
@allowed_before_start
def GET() -> Optional[LiveSessionSSHInfo]:
...

Expand Down

0 comments on commit 845f7cf

Please sign in to comment.