From: Andrew Schoen Date: Thu, 17 Dec 2015 19:51:45 +0000 (-0600) Subject: ansible: include the contents of the failure log in the exception X-Git-Tag: 1.1.0~721^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=80b2241ed84d15b6ba4a37dff37b53cfbf3e3694;p=teuthology.git ansible: include the contents of the failure log in the exception When parsing of the ansible failure log fails this will actually print the contents of the malformed log in the raised AnsibleFailedError. Signed-off-by: Andrew Schoen --- diff --git a/teuthology/task/ansible.py b/teuthology/task/ansible.py index f95a7fef5..07dc50b5f 100644 --- a/teuthology/task/ansible.py +++ b/teuthology/task/ansible.py @@ -272,7 +272,7 @@ class Ansible(Task): self.failure_log.name, ) ) - failures = fail_log + failures = fail_log.read().replace('\n', '') if failures: self._archive_failures()