def create_slave(name, **kwargs): import pcfg passwd = pcfg.get_password(name) slave = BuildSlave(name, passwd, **kwargs) slave.pys = {} slave.pgs = {} slave.tested_pairs = [] return slave
def create_slave(name, **kwargs): import pcfg passwd = pcfg.get_password(name) props = kwargs.setdefault('properties', {}) props['pys'] = {} props['pgs'] = {} props['tested_pairs'] = [] slave = BuildSlave(name, passwd, **kwargs) return slave