Enabling schedule does not writes the correct audit information for key 'enabled'
@@ -1236,7 +1236,8 @@ class Scheduler(object):
str(schedule_id),
schedule.process_name)
audit = AuditLogger(self._storage)
- await audit.information('SCHCH', { 'schedule': schedule.toDict() })
+ sch = await self.get_schedule(schedule_id)
+ await audit.information('SCHCH', { 'schedule': sch.toDict() })
return True, "Schedule successfully enabled"
