[FIX] runbot: disable host_default

This commit is contained in:
Xavier-Do 2023-01-17 15:24:49 +01:00
parent 27ac733df6
commit 763b1af1a5

View File

@ -543,7 +543,7 @@ class Repo(models.Model):
host = self.env['runbot.host']._get_current()
host.message_post(body=message)
icp = self.env['ir.config_parameter'].sudo()
if icp.get_param('runbot.runbot_disable_host_on_fetch_failure', True):
if icp.get_param('runbot.runbot_disable_host_on_fetch_failure'):
self.env['runbot.runbot'].warning('Host %s got reserved because of fetch failure' % host.name)
_logger.exception(message)
host.disable()