Land #10781, Fix error in rpc_shell_read RPC method.
parent
b13bc4b460
commit
285a183f27
|
@ -90,8 +90,8 @@ class RPC_Session < RPC_Base
|
||||||
def rpc_shell_read( sid, ptr=nil)
|
def rpc_shell_read( sid, ptr=nil)
|
||||||
s = _valid_session(sid,"shell")
|
s = _valid_session(sid,"shell")
|
||||||
begin
|
begin
|
||||||
res = s.shell_read(data)
|
res = s.shell_read()
|
||||||
{ "write_count" => res.to_s}
|
{ "seq" => 0, "data" => res.to_s}
|
||||||
rescue ::Exception => e
|
rescue ::Exception => e
|
||||||
error(500, "Session Disconnected: #{e.class} #{e}")
|
error(500, "Session Disconnected: #{e.class} #{e}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue