mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 17:01:32 +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 re import compile as compileregex
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
from tfw.internals.networking import Intent
|
||||||
from tfw.internals.inotify import InotifyObserver
|
from tfw.internals.inotify import InotifyObserver
|
||||||
|
|
||||||
|
|
||||||
@ -58,7 +59,7 @@ class HistoryMonitor(ABC, InotifyObserver):
|
|||||||
self.uplink.send_message({
|
self.uplink.send_message({
|
||||||
'key': f'history.{self.domain}',
|
'key': f'history.{self.domain}',
|
||||||
'value': command
|
'value': command
|
||||||
})
|
}, intent=Intent.EVENT)
|
||||||
|
|
||||||
|
|
||||||
class BashMonitor(HistoryMonitor):
|
class BashMonitor(HistoryMonitor):
|
||||||
|
Loading…
Reference in New Issue
Block a user