Commit 736e4d68 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-maintenance-typo' into 'master'

Fix maintenance typo.

See merge request !6336

(cherry picked from commit 739d0903)

8fd1b584 Fix maintenance typo.
parent ab4fb8f6
Pipeline #36424 passed with stages
in 27 minutes and 22 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