From f7e85368e2fe32a997b6af4f253106b8efb2d0a8 Mon Sep 17 00:00:00 2001 From: quentin on chickenita Date: Tue, 10 Oct 2023 14:51:23 +0200 Subject: [PATCH] FIX store_output_as fails if the node copy the message --- pypeman/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypeman/nodes.py b/pypeman/nodes.py index e22a36e..f7240d3 100644 --- a/pypeman/nodes.py +++ b/pypeman/nodes.py @@ -190,7 +190,7 @@ async def handle(self, msg): # TODO Here result is last value returned. Is it a good idea ? else: if self.store_output_as: - msg.add_context(self.store_output_as, msg) + result.add_context(self.store_output_as, result) if self.passthrough: result.payload = old_msg.payload