mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add check for parent in schedules
This commit is contained in:
parent
f22a6e77da
commit
1ab409f5cb
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user