]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
ansible: decode('utf-8') before logging 575/head
authorYour Name <you@example.com>
Sat, 18 Jul 2015 22:03:47 +0000 (22:03 +0000)
committerLoic Dachary <ldachary@redhat.com>
Sun, 19 Jul 2015 06:40:31 +0000 (08:40 +0200)
Otherwise it may fail if LC_ALL=C

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/task/ansible.py

index 0d69667a3fe82fee6779a6c98b05d2082b40f3b1..ba792496a0c483f4fc9cc42495029d45ec62c5c9 100644 (file)
@@ -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