From 845f7cfe4c6064b54c9dc4868cdeb4812bbdf6ee Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 14 Aug 2024 13:47:05 +0200 Subject: [PATCH] meta: respond to ssh_info queries early 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 (cherry picked from commit 41abc3576ebbf8f0753b7f98bb5c3bac553bdcc8) --- subiquity/common/apidef.py | 1 + 1 file changed, 1 insertion(+) diff --git a/subiquity/common/apidef.py b/subiquity/common/apidef.py index 6e71246d8..4d289d06e 100644 --- a/subiquity/common/apidef.py +++ b/subiquity/common/apidef.py @@ -126,6 +126,7 @@ def POST() -> None: """Restart the server process.""" class ssh_info: + @allowed_before_start def GET() -> Optional[LiveSessionSSHInfo]: ...