2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-22 00:49:32 +00:00

Create shell sessions through the async factory

ConsoleSession grew an async create and lost its constructor, and ShellSession
inherits that. sockapi was updated for the console branch but not the shell
branch immediately below it, so opening a shell session raised TypeError. It
is the only place in the tree that builds one.
This commit is contained in:
Markus Hilger
2026-08-10 04:39:28 +02:00
parent dfde5736e9
commit e1071317ed
+1 -1
View File
@@ -288,7 +288,7 @@ async def start_term(authname, cfm, connection, params, path, authdata, skipauth
sessionid = elems[5]
else:
sessionid = None
consession = shellserver.ShellSession(
consession = await shellserver.ShellSession.create(
node=node, configmanager=cfm, username=authname,
datacallback=ccons.sendall, skipreplay=skipreplay,
sessionid=sessionid, width=params.get('width', 80),