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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user