Skip to content

Commit

Permalink
fix snippets in server scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Feb 25, 2025
1 parent dc3de83 commit e00fef2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/tacticalrmm/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ def run_server_script(
if not core.server_scripts_enabled: # type: ignore
return "", "Error: this feature is disabled", 0.00, 1

body = Script.replace_with_snippets(body)

parsed_args = Script.parse_script_args(None, shell, args)

parsed_env_vars = Script.parse_script_env_vars(None, shell=shell, env_vars=env_vars)
Expand Down

0 comments on commit e00fef2

Please sign in to comment.