[CalendarServer-changes] [14336] CalendarServer/trunk/calendarserver/tools/diagnose.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 23 12:21:47 PST 2015


Revision: 14336
          http://trac.calendarserver.org//changeset/14336
Author:   dre at apple.com
Date:     2015-01-23 12:21:47 -0800 (Fri, 23 Jan 2015)
Log Message:
-----------
Sanity-check caldavd-user.plist if it exists

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

Modified: CalendarServer/trunk/calendarserver/tools/diagnose.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/diagnose.py	2015-01-23 20:12:47 UTC (rev 14335)
+++ CalendarServer/trunk/calendarserver/tools/diagnose.py	2015-01-23 20:21:47 UTC (rev 14336)
@@ -114,6 +114,14 @@
     except FileNotFound:
         print("{} does not exist".format(systemPlist.encode("utf-8")))
 
+    userPlist = os.path.join(serverRoot, "Config", "caldavd-user.plist")
+    try:
+        if checkPlist(userPlist):
+            print("{} exists and can be parsed".format(userPlist.encode("utf-8")))
+        else:
+            print("{} exists but cannot be parsed".format(userPlist.encode("utf-8")))
+    except FileNotFound:
+        print("{} does not exist".format(userPlist.encode("utf-8")))
 
     keys = showConfigKeys()
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150123/8f5c4d06/attachment.html>


More information about the calendarserver-changes mailing list