def _dispatch_trigger_for_written_data_files(self, action_db, written_data_files): trigger = ACTION_FILE_WRITTEN_TRIGGER['name'] host_info = get_host_info() for file_path in written_data_files: payload = { 'ref': action_db.ref, 'file_path': file_path, 'host_info': host_info } self._trigger_dispatcher.dispatch(trigger=trigger, payload=payload)
def _dispatch_trigger_for_written_data_files(self, action_db, written_data_files): trigger = ACTION_FILE_WRITTEN_TRIGGER["name"] host_info = get_host_info() for file_path in written_data_files: payload = { "ref": action_db.ref, "file_path": file_path, "host_info": host_info, } self._trigger_dispatcher.dispatch(trigger=trigger, payload=payload)