Browse Source

[FIX] call panic on this

pull/302/head
Holger Brunn 9 years ago
parent
commit
a4e8285b87
  1. 3
      dead_mans_switch_server/models/dead_mans_switch_instance.py

3
dead_mans_switch_server/models/dead_mans_switch_instance.py

@ -139,7 +139,8 @@ class DeadMansSwitchInstance(models.Model):
@api.model
def check_alive(self):
"""handle cronjob"""
self.search(self._needaction_domain_get()).panic()
for this in self.search(self._needaction_domain_get()):
this.panic()
@api.multi
def panic(self):

Loading…
Cancel
Save