Fix function rpc_shell_read - remove wrong parameter data, return correct values
parent
9c120ef123
commit
36b7fb3524
|
@ -90,8 +90,8 @@ class RPC_Session < RPC_Base
|
|||
def rpc_shell_read( sid, ptr=nil)
|
||||
s = _valid_session(sid,"shell")
|
||||
begin
|
||||
res = s.shell_read(data)
|
||||
{ "write_count" => res.to_s}
|
||||
res = s.shell_read()
|
||||
{ "seq" => 0, "data" => res}
|
||||
rescue ::Exception => e
|
||||
error(500, "Session Disconnected: #{e.class} #{e}")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue