Skip to content

Commit

Permalink
don't trim script whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Oct 18, 2024
1 parent 85166b6 commit 4166e92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/tacticalrmm/scripts/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Meta:
"run_as_user",
"env_vars",
]
extra_kwargs = {"script_body": {"trim_whitespace": False}}


class ScriptCheckSerializer(ModelSerializer):
Expand All @@ -63,3 +64,4 @@ class ScriptSnippetSerializer(ModelSerializer):
class Meta:
model = ScriptSnippet
fields = "__all__"
extra_kwargs = {"code": {"trim_whitespace": False}}

0 comments on commit 4166e92

Please sign in to comment.