diff --git a/fkie_node_manager_daemon/fkie_node_manager_daemon/launch_servicer.py b/fkie_node_manager_daemon/fkie_node_manager_daemon/launch_servicer.py index 43ed2ed5..7721be89 100644 --- a/fkie_node_manager_daemon/fkie_node_manager_daemon/launch_servicer.py +++ b/fkie_node_manager_daemon/fkie_node_manager_daemon/launch_servicer.py @@ -179,8 +179,9 @@ def on_any_event(self, event: FileSystemEvent): for launch_path, path_list in self._observed_launch_files.items(): if event.src_path in path_list: affected_launch_files.append(launch_path) - change_event = {event.event_type: event.src_path, - 'affected': affected_launch_files} + change_event = {"eventType": event.event_type, + "srcPath": event.src_path, + "affected": affected_launch_files} Log.debug( f"{self.__class__.__name__}: observed change {event.event_type} on {event.src_path}") self.publish_to('ros.path.changed', change_event) diff --git a/fkie_node_manager_daemon/src/fkie_node_manager_daemon/launch_servicer.py b/fkie_node_manager_daemon/src/fkie_node_manager_daemon/launch_servicer.py index 4487402b..052298b4 100644 --- a/fkie_node_manager_daemon/src/fkie_node_manager_daemon/launch_servicer.py +++ b/fkie_node_manager_daemon/src/fkie_node_manager_daemon/launch_servicer.py @@ -215,7 +215,8 @@ def on_any_event(self, event: FileSystemEvent): if event.src_path in path_list: affected_launch_files.append(launch_path) change_event = { - event.event_type: event.src_path, + "eventType": event.event_type, + "srcPath": event.src_path, "affected": affected_launch_files, } Log.debug("observed change %s on %s" % (event.event_type, event.src_path))