Skip to content

Commit

Permalink
Fix: (backport from Enterprise ref:#SEF-76) In some case, we can have…
Browse files Browse the repository at this point in the history
… "negative" value for downtime depth, and then the element will never exit from downtime.
  • Loading branch information
naparuba committed Mar 1, 2017
1 parent fee8a9c commit 5fc61c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shinken/downtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def cancel(self):
self.can_be_deleted = True
self.ref.in_scheduled_downtime_during_last_check = True
# Nagios does not notify on canceled downtimes, but we does
res.extend(self.ref.create_notifications('DOWNTIMECANCELLED'))
self.ref.create_notifications('DOWNTIMECANCELLED')
# Also cancel other downtimes triggered by me
for dt in self.activate_me:
res.extend(dt.cancel())
Expand Down

0 comments on commit 5fc61c3

Please sign in to comment.