def load_computing_unit(self): """ Loads the external computing unit. """ for factory_method in iter_entry_points( group="archipel.plugin.platform.computingunit", name="factory"): method = factory_method.load() plugin_content = method() self.computing_unit = plugin_content["plugin"] self.entity.log.info("PLATFORMREQ: loading computing unit %s" % plugin_content["info"]["common-name"]) break if not self.computing_unit: self.computing_unit = TNBasicPlatformScoreComputing() self.entity.log.info("PLATFORMREQ: using default computing unit.")