]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
ansible: decode('utf-8', 'ignore') before logging 578/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 21 Jul 2015 14:37:47 +0000 (16:37 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 21 Jul 2015 14:37:47 +0000 (16:37 +0200)
commitb231a0815b2902a42332c190e509375e167559cb
tree91860832fa51c85e0aab515b34f69230655dbc8c
parent5fe3af9ad4a96f6c316e1a65872412ba3b07bd76
ansible: decode('utf-8', 'ignore') before logging

b834dd6660a77379b2c693a36487352941a8e52d added decode('utf-8') which
breaks when a substring inadevertendly cuts in the middle of a valid
utf-8 sequence. Add the 'ignore' so the offending sequence is discarded
instead of raising an error.

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