diff --git a/api/tacticalrmm/tacticalrmm/utils.py b/api/tacticalrmm/tacticalrmm/utils.py index c451c938..a6b5069b 100644 --- a/api/tacticalrmm/tacticalrmm/utils.py +++ b/api/tacticalrmm/tacticalrmm/utils.py @@ -403,13 +403,17 @@ def replace_arg_db_values( elif value is True or value is False: return format_shell_bool(value, shell) - # for primary keys and float fields (like boot_time) - elif isinstance(value, int) or isinstance(value, float): - return str(value) - elif isinstance(value, dict): return json.dumps(value) + # return str for everything else + try: + ret = str(value) + except Exception: + ret = "" + + return ret + def format_shell_array(value: list[str]) -> str: temp_string = ""