session.flush() logger.info("reconfigure_hostlist processing: %s" % ",".join([str(dbhost.fqdn) for dbhost in dbhosts])) if not choosers: return plenaries = PlenaryCollection(logger=logger) # chooser.plenaries is a PlenaryCollection - this flattens # that top level. plenary_set = set() for chooser in choosers: plenary_set.update(chooser.plenaries.plenaries) plenaries.extend(plenary_set) td = TemplateDomain(dbbranch, dbauthor, logger=logger) # Don't bother locking until every possible check before the # actual writing and compile is done. This will allow for fast # turnaround on errors (no need to wait for a lock if there's # a missing service map entry or something). with plenaries.get_key(): plenaries.stash() try: errors = [] for template in plenaries.plenaries: try: template.write(locked=True) except IncompleteError, err: