bugfix
This commit is contained in:
parent
0be1a53af4
commit
6e40d7f527
@ -76,7 +76,7 @@ class BaseProcessor:
|
|||||||
kw = await self.run_ns['request2ns']()
|
kw = await self.run_ns['request2ns']()
|
||||||
kw.update(params)
|
kw.update(params)
|
||||||
self.run_ns['params_kw'] = kw
|
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['ref_real_path'] = self.real_path
|
||||||
self.run_ns['processor'] = self
|
self.run_ns['processor'] = self
|
||||||
self.env_set = True
|
self.env_set = True
|
||||||
|
@ -38,7 +38,12 @@ class XtermProcessor(PythonScriptProcessor):
|
|||||||
# it must return a DictObject with sshnode information
|
# it must return a DictObject with sshnode information
|
||||||
# parameters: nodeid
|
# 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()
|
ws = web.WebSocketResponse()
|
||||||
await ws.prepare(request)
|
await ws.prepare(request)
|
||||||
await self.create_process(login_info)
|
await self.create_process(login_info)
|
||||||
|
Loading…
Reference in New Issue
Block a user