Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed May 8, 2024
1 parent 7497d29 commit ab8f8c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/tacticalrmm/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ class InputSerializer(serializers.Serializer):
run_instance_id = serializers.CharField(allow_null=True)

def post(self, request):

serializer = self.InputSerializer(data=request.data)
serializer.is_valid(raise_exception=True)

Expand Down Expand Up @@ -478,7 +477,7 @@ def post(self, request, pk):
username=request.user.username,
agent=None,
script=script.name,
debug_info={"ip": request._client_ip},
debug_info={"ip": request._client_ip},
)

return Response(
Expand Down
5 changes: 4 additions & 1 deletion api/tacticalrmm/logs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ def audit_object_delete(

@staticmethod
def audit_script_run(
username: str, script: str, agent: Optional["Agent"], debug_info: Dict[Any, Any] = {}
username: str,
script: str,
agent: Optional["Agent"],
debug_info: Dict[Any, Any] = {},
) -> None:
AuditLog.objects.create(
agent=agent.hostname if agent else "Tactical RMM Server",
Expand Down

0 comments on commit ab8f8c5

Please sign in to comment.