You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@incubator.apache.org by jm...@apache.org on 2020/12/24 00:09:04 UTC

svn commit: r1884763 - /incubator/public/trunk/clutch2report.py

Author: jmclean
Date: Thu Dec 24 00:09:03 2020
New Revision: 1884763

URL: http://svn.apache.org/viewvc?rev=1884763&view=rev
Log:
Worked around issue with podling key missing. TVM had graduated so not sure why this error was occuring.

Modified:
    incubator/public/trunk/clutch2report.py

Modified: incubator/public/trunk/clutch2report.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2report.py?rev=1884763&r1=1884762&r2=1884763&view=diff
==============================================================================
--- incubator/public/trunk/clutch2report.py (original)
+++ incubator/public/trunk/clutch2report.py Thu Dec 24 00:09:03 2020
@@ -180,11 +180,12 @@ def gen_shepherd_assignments(projects, m
     # Generate and return the list of assignments.
     lines = []
     for podling_id, shepherd_id in report.items():
-        podling_name = projects[podling_id]['fullName']
-        shepherd_name = '[none]'
-        if shepherd_id in shepherds:
-            shepherd_name = shepherds[shepherd_id]['name']
-        lines.append("{} {}".format(shepherd_name, podling_name))
+        if podling_id in projects:
+            podling_name = projects[podling_id]['fullName']
+            shepherd_name = '[none]'
+            if shepherd_id in shepherds:
+                shepherd_name = shepherds[shepherd_id]['name']
+            lines.append("{} {}".format(shepherd_name, podling_name))
     lines.sort()
     return "\n".join(lines)
 



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org