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 <olivier.gayot@canonical.com>
  • Loading branch information
ogayot committed Aug 14, 2024
1 parent 3a599b1 commit 488eb92
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 @@ -120,6 +120,7 @@ def POST() -> None:
"""Restart the server process."""

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

Expand Down

0 comments on commit 488eb92

Please sign in to comment.