From b834dd6660a77379b2c693a36487352941a8e52d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 Jul 2015 22:03:47 +0000 Subject: [PATCH] ansible: decode('utf-8') before logging Otherwise it may fail if LC_ALL=C Signed-off-by: Loic Dachary --- teuthology/task/ansible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/ansible.py b/teuthology/task/ansible.py index 0d69667a3f..ba792496a0 100644 --- a/teuthology/task/ansible.py +++ b/teuthology/task/ansible.py @@ -29,7 +29,7 @@ class LoggerFile(object): self.level = level def write(self, string): - self.logger.log(self.level, string) + self.logger.log(self.level, string.decode('utf-8')) def flush(self): pass -- 2.39.5