parent
							
								
									e8bdb867fa
								
							
						
					
					
						commit
						fb2613135b
					
				|  | @ -105,10 +105,10 @@ class HostManager(object): | |||
|         dist_remotepython = self.config.getvalue("dist_remotepython") | ||||
|         for host in self.sshhosts: | ||||
|             host.initgateway(python=dist_remotepython) | ||||
|             host.gw.host = host # XXX would like to avoid it | ||||
|             host.gw.host = host | ||||
| 
 | ||||
|     def init_rsync(self, reporter): | ||||
|         # send each rsync roots   | ||||
|         # send each rsync root   | ||||
|         roots = self.config.getvalue_pathlist("dist_rsync_roots") | ||||
|         if roots is None: | ||||
|             roots = [self.config.topdir] | ||||
|  |  | |||
|  | @ -33,8 +33,10 @@ class MasterNode(object): | |||
|             self.reporter(report.SendItem(self.channel, item)) | ||||
| 
 | ||||
| def itemgen(colitems, reporter, keyword, reporterror): | ||||
|     def rep(x): | ||||
|         reporterror(reporter, x) | ||||
|     for x in colitems: | ||||
|         for y in x._tryiter(reporterror = lambda x: reporterror(reporter, x), keyword = keyword): | ||||
|         for y in x._tryiter(reporterror=rep, keyword=keyword): | ||||
|             yield y | ||||
| 
 | ||||
| def dispatch_loop(masternodes, itemgenerator, shouldstop,  | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue