Skip to content

Commit

Permalink
ansible: include the contents of the failure log in the exception
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
andrewschoen committed Dec 17, 2015
1 parent 6add0f6 commit 80b2241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teuthology/task/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _handle_failure(self, command, status):
self.failure_log.name,
)
)
failures = fail_log
failures = fail_log.read().replace('\n', '')

if failures:
self._archive_failures()
Expand Down

0 comments on commit 80b2241

Please sign in to comment.