Commit 8fd1b584 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix maintenance typo.

parent 28620cc8
Pipeline #36423 passed with stages
in 17 minutes and 49 seconds
......@@ -147,10 +147,10 @@ class Maintenance(Document):
{"direct_objects", "direct_segments", "stop", "start", "time_pattern"}
):
self.update_affected_objects_maintenance()
if "stop" in self._changed_fields:
if "stop" in changed_fields:
if not self.is_completed and self.auto_confirm:
self.auto_confirm_maintenance()
if "is_completed" in self._changed_fields:
if "is_completed" in changed_fields:
self.remove_maintenance()
if self.escalate_managed_object:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment