exclude autotask creation on agent when policy is being copied

This commit is contained in:
sadnub 2021-05-10 18:21:25 -04:00
parent a9dd01b0c8
commit 83a19e005b
1 changed files with 2 additions and 1 deletions

View File

@ -237,7 +237,8 @@ class AutomatedTask(BaseAuditModel):
task.save()
task.create_task_on_agent()
if agent:
task.create_task_on_agent()
def create_task_on_agent(self):
from agents.models import Agent