This commit is contained in:
yumoqing 2025-01-19 21:39:00 +08:00
parent 0be1a53af4
commit 6e40d7f527
2 changed files with 7 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class BaseProcessor:
kw = await self.run_ns['request2ns']()
kw.update(params)
self.run_ns['params_kw'] = kw
self.run_ns.update(kw)
# self.run_ns.update(kw)
self.run_ns['ref_real_path'] = self.real_path
self.run_ns['processor'] = self
self.env_set = True

View File

@ -38,7 +38,12 @@ class XtermProcessor(PythonScriptProcessor):
# it must return a DictObject with sshnode information
# parameters: nodeid
#
login_info = super().path_call(request, params=params)
await self.set_run_env(request, params=params)
login_info = await super().path_call(request, params=params)
if login_info is None:
raise f'data error'
debug(f'{login_info=}')
ws = web.WebSocketResponse()
await ws.prepare(request)
await self.create_process(login_info)