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) | ||||
|  |  | |||
|  | @ -622,7 +622,8 @@ class Session: | |||
| 
 | ||||
|     def is_active(self) -> bool: | ||||
|         """ | ||||
|         Determine if this session is considered to be active. (Runtime or Data collect states) | ||||
|         Determine if this session is considered to be active. | ||||
|         (Runtime or Data collect states) | ||||
| 
 | ||||
|         :return: True if active, False otherwise | ||||
|         """ | ||||
|  | @ -1100,7 +1101,8 @@ class Session: | |||
| 
 | ||||
|     def delete_node(self, _id: int) -> bool: | ||||
|         """ | ||||
|         Delete a node from the session and check if session should shutdown, if no nodes are left. | ||||
|         Delete a node from the session and check if session should shutdown, if no nodes | ||||
|         are left. | ||||
| 
 | ||||
|         :param _id: id of node to delete | ||||
|         :return: True if node deleted, False otherwise | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue