daemon: small doc change and fix to corehandlers.py sending back proper data for hooks
This commit is contained in:
parent
9e5793ab6e
commit
4836ac4f2e
2 changed files with 6 additions and 4 deletions
|
@ -1903,12 +1903,12 @@ class CoreHandler(socketserver.BaseRequestHandler):
|
|||
# TODO: send location info
|
||||
|
||||
# send hook scripts
|
||||
for state in sorted(self.session.hooks.keys()):
|
||||
for state in sorted(self.session.hooks):
|
||||
for file_name, config_data in self.session.hooks[state]:
|
||||
file_data = FileData(
|
||||
message_type=MessageFlags.ADD,
|
||||
name=str(file_name),
|
||||
type=f"hook:{state}",
|
||||
type=f"hook:{state.value}",
|
||||
data=str(config_data),
|
||||
)
|
||||
self.session.broadcast_file(file_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue