[svn r37936] minor cleanups

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-05 00:21:35 +01:00
parent e8bdb867fa
commit fb2613135b
3 changed files with 12 additions and 10 deletions

View File

@ -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]

View File

@ -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,