]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
task/ansible: reset fail_log file index 1556/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Fri, 4 Sep 2020 20:53:05 +0000 (22:53 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Fri, 4 Sep 2020 22:07:17 +0000 (00:07 +0200)
commitca86159dda758f4c4890c0983a2c987ed8572c8c
tree53a6fc6322ad5f3825ea0c5e9db9737af3cdb859
parent1b92acd31c7bcae5d4fce56c3cfcfb1a7d307080
task/ansible: reset fail_log file index

The yaml.safe_load reads the fail_log opened file
and shifts the offset to the end of stream.
However in case of error we need to shift offset
to the begin of the file stream, so we can read
data again.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/task/ansible.py