From fe3fb2f476628f4bb6cb72dc81432570d62cb852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Thu, 8 Aug 2024 17:26:07 +0000 Subject: [PATCH] Return string only in /overwatcher/logs if not as_task --- src/lvmapi/routers/overwatcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lvmapi/routers/overwatcher.py b/src/lvmapi/routers/overwatcher.py index a12e88d..b8091b0 100644 --- a/src/lvmapi/routers/overwatcher.py +++ b/src/lvmapi/routers/overwatcher.py @@ -75,4 +75,5 @@ async def get_logs_data_route( if as_task: return task.task_id - return await task.wait_result() + result = await task.wait_result() + return result.return_value