From 824bcc5603b0b58f4ce0551ecb03a1db458a1832 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Wed, 25 Nov 2020 22:19:27 +0000 Subject: [PATCH] black --- api/tacticalrmm/agents/models.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/api/tacticalrmm/agents/models.py b/api/tacticalrmm/agents/models.py index 63c943ab..4dac314f 100644 --- a/api/tacticalrmm/agents/models.py +++ b/api/tacticalrmm/agents/models.py @@ -500,7 +500,9 @@ class Agent(BaseAuditModel): try: resp = requests.post( - f"http://{settings.SALT_HOST}:8123/run", json=[json], timeout=timeout, + f"http://{settings.SALT_HOST}:8123/run", + json=[json], + timeout=timeout, ) except Exception: return "timeout" @@ -756,7 +758,9 @@ RECOVERY_CHOICES = [ class RecoveryAction(models.Model): agent = models.ForeignKey( - Agent, related_name="recoveryactions", on_delete=models.CASCADE, + Agent, + related_name="recoveryactions", + on_delete=models.CASCADE, ) mode = models.CharField(max_length=50, choices=RECOVERY_CHOICES, default="mesh") command = models.TextField(null=True, blank=True) @@ -773,7 +777,11 @@ class RecoveryAction(models.Model): class Note(models.Model): - agent = models.ForeignKey(Agent, related_name="notes", on_delete=models.CASCADE,) + agent = models.ForeignKey( + Agent, + related_name="notes", + on_delete=models.CASCADE, + ) user = models.ForeignKey( "accounts.User", related_name="user",