Commit d6ce75af authored by Jérome Perrin's avatar Jérome Perrin

AlarmTool: stop using deprecated self.getServerAddress

parent a59709c3
...@@ -39,6 +39,7 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool ...@@ -39,6 +39,7 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5 import _dtmldir from Products.ERP5 import _dtmldir
from Products.ERP5.mixin.timer_service import TimerServiceMixin from Products.ERP5.mixin.timer_service import TimerServiceMixin
from Products.CMFActivity.ActivityTool import getServerAddress
from DateTime import DateTime from DateTime import DateTime
from six.moves import urllib from six.moves import urllib
...@@ -186,7 +187,7 @@ class AlarmTool(TimerServiceMixin, BaseTool): ...@@ -186,7 +187,7 @@ class AlarmTool(TimerServiceMixin, BaseTool):
if now - last_tic >= self.interval: if now - last_tic >= self.interval:
self.tic() self.tic()
last_tic = now last_tic = now
elif _check_upgrade and self.getServerAddress() == alarmNode: elif _check_upgrade and getServerAddress() == alarmNode:
# BBB: check (once per run) if our node was alarm_node by address, and # BBB: check (once per run) if our node was alarm_node by address, and
# migrate it. # migrate it.
_check_upgrade = False _check_upgrade = False
......
Markdown is supported
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