From 3005061a11e2ae796279c4aaea6effb5acfc1c39 Mon Sep 17 00:00:00 2001 From: sadnub Date: Mon, 30 Aug 2021 08:06:15 -0400 Subject: [PATCH] formatting --- api/tacticalrmm/agents/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/tacticalrmm/agents/views.py b/api/tacticalrmm/agents/views.py index dee7306d..6e30a533 100644 --- a/api/tacticalrmm/agents/views.py +++ b/api/tacticalrmm/agents/views.py @@ -644,7 +644,11 @@ def run_script(request): else: return notify_error("Custom Field was invalid") - value = r.strip() if request.data["save_all_output"] else r.strip().split("\n")[-1].strip() + value = ( + r.strip() + if request.data["save_all_output"] + else r.strip().split("\n")[-1].strip() + ) field.save_to_field(value) return Response(r)