mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: disable host_default
This commit is contained in:
parent
27ac733df6
commit
763b1af1a5
@ -543,7 +543,7 @@ class Repo(models.Model):
|
|||||||
host = self.env['runbot.host']._get_current()
|
host = self.env['runbot.host']._get_current()
|
||||||
host.message_post(body=message)
|
host.message_post(body=message)
|
||||||
icp = self.env['ir.config_parameter'].sudo()
|
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)
|
self.env['runbot.runbot'].warning('Host %s got reserved because of fetch failure' % host.name)
|
||||||
_logger.exception(message)
|
_logger.exception(message)
|
||||||
host.disable()
|
host.disable()
|
||||||
|
Loading…
Reference in New Issue
Block a user