incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1681889 - /incubator/public/trunk/clutch2report.py
Date Tue, 26 May 2015 22:52:28 GMT
Author: marvin
Date: Tue May 26 22:52:27 2015
New Revision: 1681889

URL: http://svn.apache.org/r1681889
Log:
If there's no shepherd, assign podling to "[none]".

Modified:
    incubator/public/trunk/clutch2report.py

Modified: incubator/public/trunk/clutch2report.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2report.py?rev=1681889&r1=1681888&r2=1681889&view=diff
==============================================================================
--- incubator/public/trunk/clutch2report.py (original)
+++ incubator/public/trunk/clutch2report.py Tue May 26 22:52:27 2015
@@ -206,7 +206,9 @@ def gen_shepherd_assignments(projects, m
     lines = []
     for podling_id, shepherd_id in report.items():
         podling_name = projects[podling_id]['fullName']
-        shepherd_name = shepherds[shepherd_id]['name']
+        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


Mime
View raw message