mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 16:21:55 +00:00
History monitor should only emit events
This commit is contained in:
parent
0ea6188a05
commit
947d0a27b7
@ -2,6 +2,7 @@ from re import findall
|
||||
from re import compile as compileregex
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from tfw.internals.networking import Intent
|
||||
from tfw.internals.inotify import InotifyObserver
|
||||
|
||||
|
||||
@ -58,7 +59,7 @@ class HistoryMonitor(ABC, InotifyObserver):
|
||||
self.uplink.send_message({
|
||||
'key': f'history.{self.domain}',
|
||||
'value': command
|
||||
})
|
||||
}, intent=Intent.EVENT)
|
||||
|
||||
|
||||
class BashMonitor(HistoryMonitor):
|
||||
|
Loading…
Reference in New Issue
Block a user