[CalendarServer-changes] [15705] CalendarServer/trunk/calendarserver/tools/util.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 24 13:38:35 PDT 2016


Revision: 15705
          http://trac.calendarserver.org//changeset/15705
Author:   sagen at apple.com
Date:     2016-06-24 13:38:35 -0700 (Fri, 24 Jun 2016)
Log Message:
-----------
postAlert function got moved to a method on AlertPoster

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/util.py

Modified: CalendarServer/trunk/calendarserver/tools/util.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/util.py	2016-06-24 17:30:54 UTC (rev 15704)
+++ CalendarServer/trunk/calendarserver/tools/util.py	2016-06-24 20:38:35 UTC (rev 15705)
@@ -157,8 +157,8 @@
             # If we're being told to wait, post an alert that we can't continue
             # until the volume is mounted
             if not os.path.exists(dirpath) or (diagnose.detectPhantomVolume(dirpath) == diagnose.EXIT_CODE_PHANTOM_DATA_VOLUME):
-                from calendarserver.tap.util import postAlert
-                postAlert("MissingDataVolumeAlert", 0, ["volumePath", dirpath])
+                from calendarserver.tap.util import AlertPoster
+                AlertPoster.postAlert("MissingDataVolumeAlert", 0, ["volumePath", dirpath])
 
             while not os.path.exists(dirpath) or (diagnose.detectPhantomVolume(dirpath) == diagnose.EXIT_CODE_PHANTOM_DATA_VOLUME):
                 if not os.path.exists(dirpath):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160624/b7a2741f/attachment.html>


More information about the calendarserver-changes mailing list