From e35a530dbbe5cd30b87d83db19bcbf2b7439180e Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 18 Jul 2014 13:24:19 -0400 Subject: [PATCH] Rename from schedule_change to schedule_changed to fit our socketio motif. --- awx/main/models/schedules.py | 2 +- awx/main/tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/models/schedules.py b/awx/main/models/schedules.py index d6619648db..3adf4ee254 100644 --- a/awx/main/models/schedules.py +++ b/awx/main/models/schedules.py @@ -105,7 +105,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_websocket_notification('/socket.io/schedules', 'schedule_change', dict(id=self.id)) + emit_websocket_notification('/socket.io/schedules', 'schedule_changed', dict(id=self.id)) with ignore_inventory_computed_fields(): self.unified_job_template.update_computed_fields() diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 5037ab25c1..c2a5d93682 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -96,7 +96,7 @@ def tower_periodic_scheduler(self): new_unified_job.job_explanation = "Scheduled job could not start because it was not in the right state or required manual credentials" new_unified_job.save(update_fields=['job_status', 'job_explanation']) new_unified_job.socketio_emit_status("failed") - emit_websocket_notification('/socket.io/schedules', 'schedule_change', dict(id=schedule.id)) + emit_websocket_notification('/socket.io/schedules', 'schedule_changed', dict(id=schedule.id)) @task() def notify_task_runner(metadata_dict):