From: Your Name Date: Sat, 18 Jul 2015 22:03:47 +0000 (+0000) Subject: ansible: decode('utf-8') before logging X-Git-Tag: 1.1.0~869^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b834dd6660a77379b2c693a36487352941a8e52d;p=teuthology.git ansible: decode('utf-8') before logging Otherwise it may fail if LC_ALL=C Signed-off-by: Loic Dachary --- diff --git a/teuthology/task/ansible.py b/teuthology/task/ansible.py index 0d69667a3..ba792496a 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