mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 04:31:56 +00:00
Store length of history list requested in every case
This commit is contained in:
parent
cc964fdf27
commit
ab76e3d024
@ -27,5 +27,6 @@ class TerminadoEventHandler(TriggerlessEventHandler):
|
||||
self.terminado_server.pty.write(data['shellcmd'])
|
||||
|
||||
def read(self, data):
|
||||
data['history'] = self.monitor.history[-int(data.get('count', 1)):]
|
||||
data['count'] = int(data.get('count', 1))
|
||||
data['history'] = self.monitor.history[-data['count']:]
|
||||
return data
|
||||
|
Loading…
Reference in New Issue
Block a user