From 3f042c44a8f298d85b4255c409994a5074add9a2 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 24 Jun 2022 08:41:32 +0200 Subject: [PATCH] [FIX] runbot: fix gc warning --- runbot/models/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/runbot.py b/runbot/models/runbot.py index 49234f3d..9401d8bb 100644 --- a/runbot/models/runbot.py +++ b/runbot/models/runbot.py @@ -377,7 +377,7 @@ class Runbot(models.AbstractModel): repo._git(['gc', '--prune=all', '--quiet']) except CalledProcessError as e: message = f'git gc failed on host {host} with exit status {e.returncode} and message "{e.output[:30]} ..."' - self.warning.create({'message': message}) + self.warning(message) def warning(self, message, *args): if args: