add group_name to channel data

This commit is contained in:
Wayne Witzel III
2016-08-29 18:15:11 -04:00
parent ee09d881a4
commit 5faa21b72d
6 changed files with 9 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ class Schedule(CommonModel):
self.dtend = make_aware(datetime.datetime.strptime(until_date, "%Y%m%dT%H%M%SZ"), get_default_timezone())
if 'count' in self.rrule.lower():
self.dtend = future_rs[-1]
emit_channel_notification('schedules-changed', dict(id=self.id))
emit_channel_notification('schedules-changed', dict(id=self.id, group_name='schedules'))
with ignore_inventory_computed_fields():
self.unified_job_template.update_computed_fields()