Commit 739d0903 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

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

Fix maintenance typo.

See merge request noc/noc!6336
parents 28620cc8 8fd1b584
......@@ -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