[Buildbot-commits] buildbot/buildbot master.py,1.110,1.111

Brian Warner warner at users.sourceforge.net
Wed Nov 21 09:25:50 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20589/buildbot

Modified Files:
	master.py 
Log Message:
[project @ more #138: prohibit builder names that start with an underscore]

Original author: warner at lothar.com
Date: 2007-11-21 09:18:03+00:00

Index: master.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/master.py,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- master.py	12 Aug 2007 23:17:12 -0000	1.110
+++ master.py	21 Nov 2007 09:25:48 -0000	1.111
@@ -29,7 +29,7 @@
 from buildbot import interfaces
 
 ########################################
-    
+
 class BotMaster(service.MultiService):
 
     """This is the master-side service which manages remote buildbot slaves.
@@ -503,6 +503,13 @@
             # required
             schedulers = config['schedulers']
             builders = config['builders']
+            for k in builders:
+                if k['name'].startswith("_"):
+                    errmsg = ("builder names must not start with an "
+                              "underscore: " + k['name'])
+                    log.err(errmsg)
+                    raise ValueError(errmsg)
+
             slavePortnum = config['slavePortnum']
             #slaves = config['slaves']
             #change_source = config['change_source']





More information about the Commits mailing list