1 from buildbot.buildslave import BuildSlave 2 3 def getSlaveAuthenticationDetails(): 4 def createBuildSlave((name, password)): 5 return BuildSlave(name, password, max_builds=1) 6 return map(createBuildSlave, _getSlaveAuthenticationDetails()) 7 8 def _getSlaveAuthenticationDetails(): 9 return [("slave-name", "password")] 10