Add check for parent in schedules

This commit is contained in:
amcmanu3 2023-05-07 13:51:12 -04:00
parent f22a6e77da
commit 1ab409f5cb

View File

@ -106,6 +106,8 @@ class ApiServersServerTasksIndexHandler(BaseApiHandler):
), ),
}, },
) )
if "parent" not in data:
data["parent"] = None
task_id = self.tasks_manager.schedule_job(data) task_id = self.tasks_manager.schedule_job(data)
self.controller.management.add_to_audit_log( self.controller.management.add_to_audit_log(