From 3021f90bc5c123f9ab903ff4bc078b3479cce593 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 10 Jan 2022 20:00:11 +0000 Subject: [PATCH] agent ver check --- api/tacticalrmm/autotasks/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/tacticalrmm/autotasks/models.py b/api/tacticalrmm/autotasks/models.py index c7e649e3..d7d7de68 100644 --- a/api/tacticalrmm/autotasks/models.py +++ b/api/tacticalrmm/autotasks/models.py @@ -349,7 +349,7 @@ class AutomatedTask(BaseAuditModel): if agent: task.create_task_on_agent() - # agent version >= 1.7.3 + # agent version >= 1.8.0 def generate_nats_task_payload(self, editing=False): task = { "pk": self.pk, @@ -431,7 +431,7 @@ class AutomatedTask(BaseAuditModel): .get() ) - if pyver.parse(agent.version) >= pyver.parse("1.7.3"): + if pyver.parse(agent.version) >= pyver.parse("1.8.0"): nats_data = { "func": "schedtask", "schedtaskpayload": self.generate_nats_task_payload(), @@ -534,7 +534,7 @@ class AutomatedTask(BaseAuditModel): .get() ) - if pyver.parse(agent.version) >= pyver.parse("1.7.3"): + if pyver.parse(agent.version) >= pyver.parse("1.8.0"): nats_data = { "func": "schedtask", "schedtaskpayload": self.generate_nats_task_payload(editing=True),