mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 12:55:12 +00:00
Store length of history list requested in every case
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user