remove check

This commit is contained in:
wh1te909 2022-03-17 19:55:31 +00:00
parent d91d372fc5
commit 4aea16ca8c
1 changed files with 0 additions and 7 deletions

View File

@ -150,13 +150,6 @@ class Policy(BaseAuditModel):
for task in policy.autotasks.all():
tasks.append(task)
# remove policy tasks that use scripts that aren't compatible with the agent platform
tasks = [
task
for task in tasks
if agent.is_supported_script(task.script.supported_platforms)
]
# remove policy tasks from agent not included in policy
for task in agent.autotasks.filter(
parent_task__in=[