From f64efc63f875b4e720eacc5fe5a493a23474e0c4 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 23 Feb 2024 02:48:32 +0000 Subject: [PATCH] allow access to jsonfields in script vars --- api/tacticalrmm/tacticalrmm/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/tacticalrmm/tacticalrmm/utils.py b/api/tacticalrmm/tacticalrmm/utils.py index be53d90e..ff0ea063 100644 --- a/api/tacticalrmm/tacticalrmm/utils.py +++ b/api/tacticalrmm/tacticalrmm/utils.py @@ -407,6 +407,9 @@ def replace_arg_db_values( elif isinstance(value, int): return str(value) + elif isinstance(value, dict): + return json.dumps(value) + def format_shell_array(value: list[str]) -> str: temp_string = ""