[CalendarServer-changes] [15612] CalendarServer/trunk/calendarserver/tools/dashview.py

source_changes at macosforge.org source_changes at macosforge.org
Thu May 19 10:16:31 PDT 2016


Revision: 15612
          http://trac.calendarserver.org//changeset/15612
Author:   cdaboo at apple.com
Date:     2016-05-19 10:16:31 -0700 (Thu, 19 May 2016)
Log Message:
-----------
Fix for last set of changes.

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

Modified: CalendarServer/trunk/calendarserver/tools/dashview.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/dashview.py	2016-05-19 17:03:33 UTC (rev 15611)
+++ CalendarServer/trunk/calendarserver/tools/dashview.py	2016-05-19 17:16:31 UTC (rev 15612)
@@ -404,8 +404,7 @@
         # it would be too expensive to run the DB query for all servers. So when we
         # need the jobs data, always substitute the first server's data
         if item == "jobs":
-            pod = self.currentData["pods"][pod]
-            server = pod.keys()[0]
+            server = self.currentData["pods"][pod].keys()[0]
 
         return self.currentData["pods"][pod][server].get(item)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160519/04b51a43/attachment.html>


More information about the calendarserver-changes mailing list